Wordpress LScache Plugin: recently viewed products not working
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, After enabling caching, recently viewed products is not working. I tried load JS deferred OFF and Deferred but it didnt work. Can you help please? Thank you Regards Report number: FSXEYAMZ Report date: 10/19/2021 09:36:10 Hi, please try , add this at top of your .htaccess , purge all and check again RewriteRule . - [E=Cache-Vary:woocommerce_recently_viewed] Best regards, Hello, Thank you very much! Is it ok if I add like this? # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## RewriteEngine on CacheLookup on RewriteRule . - [E=Cache-Control:no-autoflush] RewriteRule .litespeed_conf .dat - [F,L] ### marker NOCACHE COOKIES start ### RewriteRule . - [E=Cache-Vary:woocommerce_recently_viewed] RewriteCond % HTTP_COOKIE yith_wcwl_session_ RewriteRule . - [E=Cache-Control:no-cache] ### marker NOCACHE COOKIES end ### Also, this line didnt work. Is it normal? RewriteCond % HTTP_COOKIE yith_wcwl_session_ |woocommerce_recently_viewed Regards Hi, no , add it BEFORE the line # BEGIN LSCACHE RewriteCond % HTTP_COOKIE yith_wcwl_session_ |woocommerce_recently_viewed did you add these cookie name in Cache -> Exclude -> Do not cache cookie list ? Best regards, Hello, Thank you again! Yes I added these cookie names in Cache -> Exclude -> Do not cache cookie list but it didnt solve the problem. Therefore, I removed [woocommerce_recently_viewed] cookie from this list. Regards. Hi again, This line solved the problem. Thank you very much! RewriteRule . - [E=Cache-Vary:woocommerce_recently_viewed] Regards Hello, After adding the above line at top of the .htaccess, cache is recreated every time I visit the product pages. Can you help please? Thank you Regards For example, homepage cache status: Hi, if you view some product , it has to create new cache with new product to be shown in the recent viewed product otherwise you wont see the newly added product into recent review list if that recent viewed product was added by shortcode or widget , you can try to make it ESI block , which should be more efficient way to handle it Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference