Is there a variable/other way to quickly disable all views caching when working on a dev server? I have a lot of views which have different caching settings, and there are times when I am doing testing that I would just like to turn all views caching off, similar to the way that you can turn CSS/JS aggregation off.

I found that the Views module itself has its own cache in the documentation, but this is not the caching for individual views-- and the caching for each individual view is what I want to turn off.


1 Answer 1


If You ask about drupal 7 can use

cache_clear_all('*', 'cache_views', TRUE);

in template file.

Refreshing page that is using the file will clear all views cache.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.