|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
piernik Smarty n00b
Joined: 28 Apr 2006 Posts: 4
|
Posted: Fri Apr 28, 2006 5:22 am Post subject: Zaawansowane kasowanie cache'u |
|
|
Zdecydoałem się używać szablonów smarty.
Mam jedno pytanko odnośnie cyszczenia kaszu.
Mianowicie. W dokumentacji smarty jest takie coś:
Quote: |
// clear all caches with 'sports|basketball' as the first two cache_id groups
$smarty->clear_cache(null,'sports|basketball');
// clear all caches with "sports" as the first cache_id group. This would
// include "sports|basketball", or "sports|(anything)|(anything)|(anything)|..."
$smarty->clear_cache(null,'sports');
// clear the foo.tpl cache file with "sports|basketball" as the cache_id
$smarty->clear_cache('foo.tpl','sports|basketball');
|
Ale ja chciałbym usunąć wszystkie pliki które spełniają taki warunek:
$smarty->clear_cache('foo.tpl','|basketball');
czyli wszystkie pliki kaszu zbudowane na podstawie pliku foot.tpl z dowolnym pierwszym identyfikatorem i konkretnym drugim i dowolnymi następnymi.
Jak widzę w smarty nie jest to możliwe, bo buduje konkretną nazwę pliku.
Czy wie ktoś czy istnieje jakaś "łata" na smarty umożliwiająca coś takiego? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|