Skip Navigation

[Resolved] Is there a way to remove cache from SOME toolset block “views”

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to remove caching from Toolset View?

Solution:

A View block can be added in the block editor and if you select the View you will see the cache option on the right sidebar.
You can turn it off and on and it is related to each view block, so you can add a block without cache and add another view block with cache.

cache

For the classic view use the cache attribute when you use the views shortcode:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154377

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by a.R 1 year, 11 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2522331

a.R

There was a post about that 2 years ago, but there is written it might be outdated.

THANK YOU 🙂

#2522419

Christopher Amirian
Supporter

Languages: English (English )

Screen Shot 2022-12-26 at 14.25.17.png
Screen Shot 2022-12-26 at 14.25.27.png

Hi there,

A View block can be added in the block editor and if you select the View you will see the cache option on the right sidebar.

You can turn it off and on and it is related to each view block, so you can add a block without cache and add another view block with cache.

Thanks.

#2523793

a.R

Ok, thank you.

Is it also possible in classic view?

#2523815

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

You can control the cache in classic view when you use the shortcode to call the view. Here is an example:

https://toolset.com/forums/topic/need-to-disable-caching-on-toolset-views-page-because-we-have-logged-in-users/#post-1158840

For more detailed information:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154377

Thanks.

#2523821

a.R

My issue is resolved now. Thank you!