Wordpress LScache Plugin: Need Help With Caching PHP/HTML files
Last Updated on: Wed, 15 Apr 2026 00:00:02 Dear Team, I would like to increase the cache time for static assets of LiteSpeed Plugin to at least 1 Week. My Second Query is to set cache for Two Days for Dynamic Assets like PHP, HTML files. Kindly explain the procedures to set the same. Below is my HTACCESS code. # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## RewriteEngine on CacheLookup on RewriteRule . ? [E=Cache-Control:no-autoflush] ### marker CACHE RESOURCE start ### RewriteRule wp-content/. /[^/] (responsive|css|js|dynamic|loader|fonts) .php ? [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ### marker FAVICON start ### RewriteRule favicon .ico$ ? [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker WEBP start ### RewriteCond % HTTP_ACCEPT image/webp [or] RewriteCond % HTTP_USER_AGENT Page Speed RewriteRule . ? [E=Cache-Control:vary=% ENV:LSCACHE_VARY_VALUE +webp] ### marker WEBP end ### Regards, Myilraj.G The page I need help with: https://www.onlinehomeincome.in/ Hi, 1. LiteSpeed cache wont cache static resources. 2. set cache for Two Days for Dynamic Assets like PHP, HTML files. you mean the sites page? then please go to Cache ?> TTL ?> Default Public Cache TTL Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference