CacheBundle
CacheBundle copied to clipboard
Enhancement : create subfolders for lifetimefile
Hi !
This bundle is great for people who want to handle cache themselves.
I'm using lifetimefile to cache some data. But, I need to cache something like 50 000 static web pages. And I don't want this to be stored in one folder. So I was thinking about a way to handle subfolders.
Something like :
$cache->save('/my/subfolder/cacheContent', $content);
Could make the deal.
I tried this but it doesn't work because of non created folders. So it will need some modifications in LifetimeFileCache.php
Are you open to this ? So I can make a pull request sometime.
Hi,
Sure! This is a nice idea you can go with it.
Thanks ;)