Does the symfony cache system handle ext2 32000 files in the same directory limitation ?
I have 80000 users and i want to cache their profiles but do symfony cache system handle the ext2 limitation ?
i’m also posting for the others who will face the same problem.
I’m not 100% sure whether my answer is correct but in
PROJECT/lib/symfony/cache/sfCacheFile.class.phpthere is a method:sfCacheFile::getFilePath()that returns a path to a file. It seems that there is no any protection against limitations ofext2filesystem.But there is a very simple solution – override that class:
In
PROJECT/apps/APP/config/factories.ymlset your own cache class:Now create that class and make sure it extends
sfFileCacheand overridesgetFilePath()}
Clear cache:
./symfony ccNow you need 32000 cache keys that starts with the exact same two letters/digits to crush your filesystem.