Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Get/Set Cache to Sub Directories
adam8810
January 2013
Is there a way to get and set cache in specific sub-directories in my cache folder?
I have a few different types of information I plan on caching and I'd like to separate them into folders so it's not just a huge long list over time.
Thanks!
Harro
January 2013
Accepted Answer
You can use Fuels 'dot-notation' to organize your cache structure. The file driver will convert that to a folder structure.
So if you use a cache key like "admin.users.user_016", it will create app/cache/admin/users/user_016.cache to store the cached data.
adam8810
January 2013
Awesome! Thank you.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
adam8810
January 2013
Harro
January 2013