Saltar navegación

[Resuelto] Cache Views with Views Elementor widget

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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 6 respuestas, tiene 2 mensajes.

Última actualización por Minesh 1 year, 10 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2710680

How do I know if views are cached, when Im using the elementor views widgets? They load view admin ajax and take 6-10 seconds to load.

#2710705

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset Block do not cache at backend. Toolset Block view uses the dynamic sources using which block view so it depends how many blocks you added within your view and there could possibly that number of requests to server:
- https://toolset.com/documentation/dynamic-sources-in-popular-blocks/#toolset

What if you try to increase memory for your backend: Add following line to your wp-config.php file.

define('WP_MAX_MEMORY_LIMIT','512M');

More info:
- enlace oculto

#2710773

How do we cache views with the Elementor Tooslet Views Widget?

its not a resources issue. And its no guttenberg blocks!

#2710844

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Please acknowledge that the output for the view is only cached on the front end.

However- there is no option with Elementor view widget to control the caching.

So, the workaround would be you should try to add shortcode module or text module and add the view's shortcode:

[wpv-view name="your-view-slug" cached="off"]   /// turn off the view cache

[wpv-view name="your-view-slug"] /// by default cache is on 

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

Please check the following Doc:
- https://toolset.com/documentation/legacy-features/views-plugin/how-to-use-views-parametric-search-on-large-sites/
[Section: "Cache is automatically turned off for Views when:"]

#2711038

So, are elementor Toolsest Views cached?

#2711039

How do views get told to purge and update their cache?

#2711345

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

So, are elementor Toolsest Views cached?
=========>
I've created the following sandbox site and you can auto-login to it using the following link:
- enlace oculto

I've created the block view on the following page that lists all book posts of post type Books:
- enlace oculto

I've created the following page:
- enlace oculto

The page content is set to use Elementor template and this is the Elementor template used:
- enlace oculto

On frontend I can see it does display five book posts - one per page:
- enlace oculto

But checking on view's listing page - I do not see the view is cached - it shows message "Not cached":
- enlace oculto

Theoretically - by default view output should be cached but it does not seems to be the case when using Elementor view widget as per the basic testing. Not sure if it cache the result after sometime or any other scenario.

How do views get told to purge and update their cache?
=====>
To purge the view cache - you should just go to view's listing page on your site:
- enlace oculto

and click on button "Clean Cache" available in the column "Frontend output cache". Please check the following screenshot: enlace oculto