Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
What is cache section?
  • from document http://fuelphp.com/docs/classes/cache/usage.html
    at delete_all function



    $section string Name of a section or directory of the cache, null to delete everything



    What is section? i don't see about this in other part of cache document.
    and How to set cache with directory? because when i use set cache with / in identifier it throw error!
  • kenjiskenjis
    Accepted Answer
    Good question!

    It seems that you can set cache with dot, like 'section.id'.

  • Correct. You can use a cache key like "module.function.keyname", and with delete_all("module"), you delete every cache item that starts with "module.".

    It's easiest to understand if you use the file driver, where that key translates to the ./module/function/keyname.cache file. The delete_all('module') will delete the ./module folder, and everything in it.
  • Thanks. I see Frenky has already beaten me to it. ;-)

Howdy, Stranger!

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

In this Discussion