Skip Navigation

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

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

Problem:
Is there a way to remove cache from toolset block "views"

Solution:
For now, With Toolset block views there is no option to disable the cache but you can use the filter hook "wpv_filter_disable_caching" to disable the cache.

For example:

add_filter( 'wpv_filter_disable_caching', '__return_true' );

- Please note that this will disable the cache for all the views.

Relevant Documentation:

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Rickard 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1511907

Im having problems using WP-PostRatings since it cant be used with any form of cache.

"Failed to verify referrer" is the error that appears when one tries to use post ratings from the front end after a few hours.

Its probably a nonce problem and after going into edit for the post and just press update the error goes away.

So Im now trying to remove all types of cache.

In ordinary views shortcode one can use cached="off". Is it possible to turn off toolset cache in Toolset Blocks (I am trying to use it now) as well?

#1512859

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I think you have a point here. With Views build using Toolset Blocks do not have a option to turn cache on/off. I just checked with our Devs and they are happy to add it.

However - I request you to please file a feature request to raise your voice in front of our Devs.
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1513669

Ive posted the request for the feature in the contact form.

Im currently testing the following code to remove cache from all views:

//* Remove cache from toolset
add_filter( 'wpv_filter_disable_caching', '__return_true' );

Might fix the issue but its not optimal since it removes the toolset cache from all views.