Re: [SMARTY] cache dir size
| From: | Monte Ohrt | Date: | Wed, 03 Jul 2002 18:11:29 +0000 |
| Subject: | Re: [SMARTY] cache dir size | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5180@lists.php.net to get a copy of this message | ||
We've briefly discussed cache file management before. Currently Smarty has no provisions for automated cache file cleaning, you must do that yourself.
In Unix, you could do it with a cronjob and the find utility. Windows I'm not sure, I suppose a php script could do it.
Monte
eNotalone.com inc. wrote:
Hi everyone! What happenes when you use smarty with large amount of pages? i have about 2500 articles for now and when i cache them the cache directory size is already too large, what will happen if i have 50.000 articles? will smarty continue to keep all the cached file in a single directory or does it have the inteligence to manage such issues? of couse i could use childish solutions like having a separate class for every lets say 1000 article! then smarty will have separate directories for every 1000 article cache. before doing this i would like to check what others think about this problem. _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.