CacheBundle icon indicating copy to clipboard operation
CacheBundle copied to clipboard

Enhancement : create subfolders for lifetimefile

Open LouWii opened this issue 11 years ago • 1 comments

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.

LouWii avatar Oct 04 '13 16:10 LouWii

Hi,

Sure! This is a nice idea you can go with it.

Thanks ;)

winzou avatar Oct 07 '13 02:10 winzou