Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Cache - dependencies array
  • I'm trying to use the cache class, but i'm with a can't understand the dependencies array.
    The documentation doesn't have an example about how to use it. Can you help me?
  • The dependencies array is an array of other cache identifiers. The idea behind it is that you can have cached items expire based on the dependencies. In other words, if you do a Cache::get() of a cache identifier, and one of the dependencies has been updated since this identifier was created, it will be considered to be expired. It will allow you to auto expire "child" data when the "parent" data has been refreshed.

Howdy, Stranger!

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

In this Discussion