Closed (fixed)
Project:
Views content cache
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2010 at 10:50 UTC
Updated:
2 Jul 2010 at 18:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerI don't think thats such specific stuff should be included into views.
You could sure develop it for your own
a) Write a caching plugin, which adds a specific key to the cache_key
b) use hook_nodeapi to remove the caches with this specific cache_key prefix
Comment #2
merlinofchaos commentedSuch a module would likely be valuable in the contrib space, I think, because it seems to be something that would be commonly wanted. If you are willing to maintain a module, I highly recommend you create the plugin and create a module for it.
Comment #3
huesforalice commentedThank you for your feedback. What about this? Any objections against writing to the settings table on nodeapi insert/delete? And any other suggestions on what could be included?
Comment #4
dawehnerI would have used cache_clear_all and use a specific cid to remove from the cache table.
Comment #5
huesforalice commentedIs there any special reason for that? I was trying to use the expire function inherited from the original cache plugin object so that my plugin would be as similar as possible to the "reference implementation" that comes with views. Plus I can put in some more settings into my cache plugin and combine multiple cache strategies (as soon as I or someone else thinks of more use cases).
Another question that came to mind: When using the time based caching that comes with views, will one view version be cached for all users, or will it be cached per role or even per user?
Thanks
Dave
Comment #6
dawehnerYou have less data in your tables :)
Comment #7
steven jones commentedVery interesting...subscribe.
Comment #8
steven jones commentedComment #9
steven jones commented@huesforalice let me know if you'd like commit access to the module, or feel free to file patches.
This is now working quite nicely, mad!
Comment #10
huesforalice commentedHi Steven,
I was planning to release this as an own small module sometime soon. Or is there any other way of integrating it into views in a sensible manner? If I do release it, then I'd need svn access.
Dave
Comment #11
steven jones commentedAh, I've already released the code as the project that this issue is now attached to.
I note that you don't have CVS access, feel free to post patches and I'll commit them until you get a CVS account.
Comment #12
huesforalice commentedAh ok very nice. I was looking forward to releasing my own first module though. Well never mind, I'll see if I can get svn access and then I'll get back to you.
Comment #13
Bastlynn commentedThank you! Thank you thank you thank you.... this is *exactly* what I was looking for and has done some very nice things for a freelance project I'm working on for a friend. Thank you for tackling this problem. :)