Re: Structure of cache-dir

messju mohr <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
On Mon, May 24, 2004 at 12:01:00AM +0200, Nichlas Löfdahl wrote:
> Hello!
> 
> May I suggest changing the directory-handling when it comes to caching?
> 
> Currently I'm having over 19000 directories in the base cache-dir, wouldn't it be better if they were divided into subdirs with the 3 first letters as prefix (i.e. total of maximum 4096 subdirs). 
> 
> cache/e7d/e7dca61b8e8a9150863bc06d70d1827d

that sounds very reasonable to me.

i think something like [cache_id]/%%e7/e7d/e7dca61b8%%foo.tpl
(with an example crc32 of e7dca61b8 hex) would be good.

we would end up with a maximum of 256 directories each containing a
maxiumum of 16 subdirectories (the 4096 directories you mentionend)


> instead of
> 
> cache/e7dca61b8e8a9150863bc06d70d1827d
> 
> /Nichlas

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.