Description
I was just wondering if you could clarify how the invalidation works exactly
from the docs you said that if you don't use a cache driver that supports tags, then anytime a new model is added the entire cache will be flushed
is it then the case that if you do use a driver that supports tags.. that anytime any user adds a new model (a comment for example) then this will trigger what exactly? all cache related to comments for all users will be flushed ?
it seems it would be useful to have a way to customize our own invalidation logic.. through the configuration file
perhaps this could serve as inspiration, another excellent caching package that I use
https://github.com/spatie/laravel-responsecache/blob/master/config/responsecache.php
another question please.. you say it's a bad idea to cache users.. I agree inherently but then if the invalidation works perfectly then why not exactly?
but in any case, let's say you don't cache the user model.. what about all the relations between the user and other models? if those models extend your CacheModel then the relations will be cached but not the user ?