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 On 23 September 2010 17:17, debussy007 <debussy...@gmail.com> wrote: > > 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/" : > $frontendOptions = array('lifetime' => NULL, 'automatic_serialization' => > true); > $backendOptions = array('cache_dir' => './tmp/'); > $cache = Zend_Cache::factory('Core', 'File', $frontendOptions, > $backendOptions); > > > Thank you for any help! > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/Zend-Cache-and-dynamic-backend-location-tp2552648p2552648.html > Sent from the Zend Framework mailing list archive at Nabble.com. >