Navigation überspringen

[Geschlossen] Is it cache issue to the view?

This support ticket is created vor 2 Jahren. 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.

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christopher Amirian vor 2 Jahren.

Assistiert von: Christopher Amirian.

Author
Artikel
#2586569

Dear Sir/Madam,

Please refer to the screen recording versteckter Link, this is the view I created, don't know why the data is not up to date if I first visit on new tab even I refresh it. Until I click the reset button then I reload and show the lastest update record. If I open it on new tab, it is not correct, how can I force the view not using cache?

#2586685

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Screenshot 2023-04-04 at 15.07.54.png
Screenshot 2023-04-04 at 15.08.02.png

Hi there,

If you used blocks to create a view please follow the steps below to force the view not to cache:

- Go to the block editor.
- Click the top left hamburger menu to show the hierarchal view of the blocks.
- Select the View block
- On the sidebar on the right you will be able to see the Cache option and you can turn it off.

Please check the attached screenshots.

If you use classic view, add the cache disabling attribute in the shortcode that you use to show the view:

[wpv-view name="Your view" cached="off"]

Thank you

#2586737
Screenshot 2023-04-04 at 7.21.30 PM.png

Dear Christopher Amirian,

I use the Avada theme, not sure whether it is a block editor or not.

#2586841

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi there,

Yes you use the shortcode, so instead of the shortcode in the screenshot you mentioned, use:

{!{wpv-view name='membership-list' cached='off'}!}

That will force the view to turn off cache.

Thanks.

#2586843

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi there,

Yes you use the shortcode, so instead of the shortcode in the screenshot you mentioned, use:

{!{wpv-view name='membership-list' cached='off'}!}

That will force the view to turn off cache.

Thanks.

Das Thema „[Geschlossen] Is it cache issue to the view?“ ist für neue Antworten geschlossen.