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

merlinofchaos’s picture

Status: Active » Fixed

The 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.

smitty’s picture

Status: Fixed » Closed (fixed)

Thanks 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!

smitty’s picture

Status: Closed (fixed) » Active
smitty’s picture

Status: Active » Closed (fixed)