Postponed
Project:
Views content cache
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2012 at 17:32 UTC
Updated:
27 Sep 2013 at 19:02 UTC
Jump to comment: Most recent
Comments
Comment #1
erikwebb commentedLooking at Views generally, you could look at the code in Views Per-User Cache to get started. The change is pretty easy, essentially copying and posting the get_output_key() and get_results_key() functions.
For sites with a lot of users, however, this can create a pretty significant amount of cache entries and should probably only be used on sites with a cache backend that imposes a size limit (like Memcached). How many active users are on your site?
Comment #2
obrienmd commentedNot many, maybe 20 active users. We have lots of redis space for this too :)
Comment #3
erikwebb commentedYou should be able to easily extend the example in Views Per-User Cache and add to a class inheriting from views_content_cache_plugin_cache. If you can get that going in a sandbox, we can take a better look there.
Comment #4
greg boggsBeing able to invalidate a cache when a user is updated would be super awesome.
Being able to invalidate a cache when a taxonomy term is updated would also be great. Then you could VCC almost any view.
Comment #5
rooby commented@Greg Boggs:
That is a different feature request to what this issue is about.
You will have a better chance of getting the changes you want if you open a new issue.