Forum Moderators: coopster
I'm implementing Smarty's caching in my application, and when a user lists himself in three hundred cities, I need to clear the cache for those 300 city pages. So should I run a loop that clears the cache for all those city pages, or should I let the cached pages expire every five or ten minutes? Or is there some way I can take advantage of cache groups (the a¦b¦c thing as described in the manual)? Maybe there's some way I can pass an array of $compile_id's to clear_cache()...
Thanks for your advice, I hope somebody can answer this Smarty specific question.
Run a few experiments to find out how fast it runs on your machine. microtime [php.net] is generally used for such a thing.
Try a few methods out and see which works best for you.