Skip to content

Conversation

@imnotjames
Copy link
Contributor

This uses the Laravel Model Event Listeners to handle the flushing of the cache for roles.

This should resolve issue #428

@imnotjames
Copy link
Contributor Author

This does bring up the question - why is this flushing all cached roles instead of just the specific user's?

and why isn't it clearing the cache on detachRole / attachRole?

@imnotjames imnotjames changed the title use laravel Event Observers for clearing cache use laravel Event Listeners for clearing cache Dec 14, 2015
@andrewelkins
Copy link
Collaborator

Looks good. I'll merge tomorrow

@bkuhl
Copy link

bkuhl commented Feb 13, 2016

👍 Implementation looks good. I definitely like that this simplifies the code by overloading fewer methods.

@imnotjames
Copy link
Contributor Author

imnotjames commented Apr 23, 2016

So it looks like a different method to resolve this has been chosen which adds in extra code around all of this in #532. @andrewelkins Should I bother correcting the conflicts at this point?

@imnotjames
Copy link
Contributor Author

@andrewelkins I've updated this to be against the latest codebase

rhwilr pushed a commit to SocietyCMS/Core that referenced this pull request May 12, 2016
@imnotjames imnotjames closed this Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants