Caching without a plugin




Wordpress LScache Plugin: Caching without a plugin

Last Updated on: Wed, 15 Apr 2026 00:00:02
Caching without a plugin I came to the conclusion that my site is faster without a plugin Although the plugin is good, but in my case it is better without it But litespeed caching I would like to use I used code RewriteEngine On RewriteRule (. . Php)? $ ? [E = cache-control: max-age = 36000] Everything works great, but I would like a more perfect code, Im sure you know it, if its not difficult for you to share So as not to cache the cart, placing an order woocommerce and the admin panel Hi, you can try just reset to default setting without enable any optimization options , that will pretty much same as this use rewrite rule to manipulate caching is rather difficult and no, we dont really have such code anymore ever since the plugin was made you will need to have certain knowledge about mod_rewrite in order to use it properly you can use RewriteCond to check URI before cache it , e.g. RewriteCond % REQUEST_URI ! cart|account|admin [NC] RewriteRule . - [E=Cache-Control:max-age=36000] this will check if URI contains string cart, account or admin , and only cache page when not such string is found. Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference