Not sure if I am simply over looking something obvious.
I have a set of cached query data that holds info from various Models.
So the Blogs “Post” has the cached User, Avatar, Blog and Post Model data.
Now how is the best way to delete the cached data across these records? If I edit any of the data(User, Avatar, Blog or Post) that held in the cached data I need to delete the cached record inorder to have it reflect the changes.
Is there a simple way / behavior to assist with this? If not you have to manually request to delete the cache records in each model after save / edits?
Or is better to cache each model as a separate object and not cache across models?
Thanks,
K
No comments:
Post a Comment