Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
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?
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
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion