Re: [fw-general] Zend_Cache and dynamic backend location ?

2010-09-23 Thread Renan de Lima
look at "hashed_directory_level" option in Zend_Cache_Backend_File this makes "dynamic" directories generation, $id is the seed, so it's not random, but i think it may works for you see http://framework.zend.com/manual/en/zend.cache.backends.html#zend.cache.backends.file -- Renan de Lima Barbosa

Re: [fw-general] Zend_Cache and dynamic backend location ?

2010-09-23 Thread Hector Virgen
How will you read from the cache if you don't know where the the cache file is? I would suggest using separate cache instances for different locations. For example, a database cache could store cache file in /tmp/db while a page cache could store them in /tmp/pages. You can then pick the right cac

[fw-general] Zend_Cache and dynamic backend location ?

2010-09-23 Thread debussy007
Hi, I want to store the cache files at a dynamic location. e.g. ./tmp/123/ ./tmp/3467/ ./tmp/18/ etcetera But when calling save(), seems that I cannot specify a subdirectory unfortunately. So is there any way to achieve that ? This is how I use Zend_Cache, but now all files are in "./tmp/" :