Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2013 at 17:29 UTC
Updated:
30 May 2013 at 15:06 UTC
I've got a views block with a random sort criteria.
I want this block to change on every reload of the page.
I've configured the system cache to cache pages for anonymous users and to cache blocks.
In views the block caching of the in block in question is configured to "Do not cache". "Cache" is set to "none".
But for anonymous users this block only changes if the page cache is flushed.
Is this system immanent or am I doing something wrong?
Comments
Comment #1
merlinofchaos commentedThe anonymous page cache caches the entire page, all as one giant chunk of HTML. You can't exempt any piece of HTML from this cache.
The caching settings within Views refer to its own internal cache system, and affect just that View. Views cannot affect an upstream caching system, which is what the page cache is. It is, in fact, impossible to do this without using some kind of server side includes or edge side includes, both of which are quite complex systems and beyond the scope of what Views can offer you.
Comment #2
smitty commentedThanks a lot!
I had the strong feeling, that it works like you explained it. But I was not sure.
Now I am.
Thanks a lot indeed!
Comment #3
smitty commentedComment #4
smitty commented