Sauter la navigation

[Résolu] Is there a way to remove cache from SOME toolset block « views »

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 support ticket is created Il y a 2 années. 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.

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par a.R Il y a 2 années.

Assisté par: Christopher Amirian.

Auteur
Publications
#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

Les langues: Anglais (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

Les langues: Anglais (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!