How to divide cache files into subdirectories?
Notice: This thread is very old.
- Morfeo21
- Member | 35
Hi,
I have an application which uses FileCache a lot … I mean, tens of thousands
cache files in /temp/cache directory.
And in this amount of files it really slows down my server. I looked through FileStorage class, but I haven't found any setting how to divide cache files into more subdirectories.
Did anybody solve this problem? What can I do? Thanks for your help!
- petr.pavel
- Member | 535
The $namespace parameter to Cache constructor is used as a directory name.
$cache = Cache($storage, $namespace);