• Resolved tores54

    (@tores54)


    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

    <IfModule LiteSpeed>
    RewriteEngine On
    RewriteRule (. * \. Php)? $ – [E = cache-control: max-age = 36000]
    </IfModule>

    Everything works great, but I would like a more perfect code, I’m sure you know it, if it’s not difficult for you to share

    So as not to cache the cart, placing an order woocommerce and the admin panel

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    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 don’t 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,

Viewing 1 replies (of 1 total)
  • The topic ‘Caching without a plugin’ is closed to new replies.