I'm not sure if this has been integrated elsewhere that I haven't found (of if it's been discussed elsewhere), but I'd love to see a "Cache Block? Yes/No" setting in the Views UI when creating a block view.

Most sites want to run block caching, but some Views displays (for example, "random sort") don't work well when the block is cached. I have no idea what it would take to implement a feature like this, but putting that setting in the UI sure would make for a useful add-on.

Hopefully this could be considered for an upcoming release...

Comments

merlinofchaos’s picture

Status: Active » Fixed

This setting exists but due to a bug in Drupal core has been commented out. Core does not currently allow you to change the caching mode once a block has been set up, which makes this UI not quite but almost useless. Once that bug is fixed in core I will re-enable this feature.

daytripscanada’s picture

Also interested in this feature to display random item on homepage to anon users without it caching.

merlinofchaos’s picture

This setting wouldn't be able to circumvent page caching.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.