Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Cache problem
  • I'm using Ormauth and Auth::groups() method. After editing some groups this method returns cached array of groups. How could I get current version of this list?
  • Answer:
  • HarroHarro
    Accepted Answer
    OrmAuth caches the compiled results for speed purposes.

    If you change the data, you need to flush the cache so it can be rebuild:

    \Cache::delete('<your-cache-prefix>.groups');  // delete the group cache
    \Cache::delete('<your-cache-prefix>.roles');  // delete the role cache
    \Cache::delete('<your-cache-prefix>.permissions');  // delete all user permissions caches
    \Cache::delete('<your-cache-prefix>.permissions.user_<userid>');  // delete the permissions cache of a specific user

Howdy, Stranger!

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

In this Discussion