Skip Navigation

[Résolu] Views & Clean Cache

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

Problem: It seems like the new caching system will require manual intervention to update the cache any time content changes.

Solution: An individual View's cache is invalidated any time a post that could appear in the View results is added or edited. Manual intervention is not required here.

Relevant Documentation:
https://toolset.com/documentation/user-guides/views/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

This support ticket is created Il y a 4 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Marqué : 

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

Dernière mise à jour par julieP Il y a 4 années et 9 mois.

Assisté par: Christian Cox.

Auteur
Publications
#1528715

I've noticed a new column 'Frontend output cache' has appeared in wp-admin for Views with a value 'not cached' and that whenever a page is visited that displays content generated by a View, that value changes to a 'clean cache' button.

I get the importance of caching stuff BUT if a user visits a page with Views generated content, moves on and before they come back a different user creates a post that would be returned by 'the View', will the earlier User see that new content now or does the Views cache need to be cleared first?

If this is working the way I perceive it, users won't be seeing up to date information. Can you clarify please?

I thought we used to have a 'cache this View' (or maybe 'don't cache this View' checkbox in previous versions of Views or am I mistaken??

#1529249

The cache is automatically invalidated if a post that would be part of the View's Content Selection is added or edited. So if your View is of Posts, any time a new Post is created the cache for that View is automatically invalidated. There are some other reasons why cache would be disabled explained here: https://toolset.com/documentation/user-guides/views/front-page-filters/how-to-use-views-parametric-search-on-large-sites/

There was no cache checkbox as far as I know, but you always had the option of specifying cached="off" in the View shortcode:

[wpv-view name="your view name" cached="off"]
#1530213

Hi Christian

Thanks for clarifying - that's a relief!

I think I might have been thinking of the 'use the cached version if available' setting rather than a checkbox.