Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Zaawansowane kasowanie cache'u

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
piernik
Smarty n00b


Joined: 28 Apr 2006
Posts: 4

PostPosted: Fri Apr 28, 2006 5:22 am    Post subject: Zaawansowane kasowanie cache'u Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP