Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Get/Set Cache to Sub Directories
  • 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!
  • HarroHarro
    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.
  • Awesome! Thank you.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion