Hello,
I'd like to go slightly deeper into Smarty caching, so I have some simple questions...
To manipulate cache invalidation I want to know what directory Smarty is storing it's cache in. For example, all cached pages related to
user_id=123
I want to store atcache/users/123/
. Wherecache
is smarty caching dir. How can I tell smarty to store cache related touser_id=123
atcache/users/123/
? Will Smarty store cache of sub-templates in this directory also?Is there any recommendations about cleaning cache in this directory? I think that simply removing files from this directory can cause some errors if some visitors are currently visiting this pages (Error can occure when smarty will see that template cache is found, but sub-template cache isn't found because it was already removed, for example).
Any recommendations and advices are appreciated.
Thank you.