Lite speed cache et smarty

#1
Bonjour,

Le module lite speed cache sur prestashop est-il compatible avec le cache smarty ? J'ai l'impression que les deux ensembles ralentissent le site.

Merci d'avance pour vos précisions
 

serpent_driver

Well-Known Member
#2
Le module lite speed cache sur prestashop est-il compatible avec le cache smarty ?
Yes, but Smarty doesn't matter. I am using Lscache and Smarty together in different applications and notice no issues. At the end the output and the content of cached files on server is always pure HTML.

J'ai l'impression que les deux ensembles ralentissent le site.
What is your impression based on?
 
#3
Sur le test page speed insight le Fist Contentful paint est beaucoup plus long quand les deux caches sont ensembles. Cela vous semble anormal ?
 

serpent_driver

Well-Known Member
#4
Pagespeed doesn't check the speed of a page. It checks how long it takes to display after all data has been loaded from the server, so the name "Pagesspeed" is wrong and should be renamed to "Display Speed". Pagespeed Insights doesn't honour if you use a HTTP cache or not.

If you have the Smarty cache in PrestaShop enabled this costs more load, but only if a page isn't cached. If it is cached the Smarty cache is out of order, so it doesn't make sense to use PrestaShop Smarty cache function with LScache. Disable it.
 
Last edited:

serpent_driver

Well-Known Member
#5
FYI: Smarty basically is a template engine, but has a cache function that can be enabled in PrestaShop. Using Smarty cache and the webserver based LScache doesn't double the speed. It costs more load if a URL isn't cached, so don't use both. Lscache is x-time faster than Smarty cache.
 
Top