• Resolved lordsnake

    (@lordsnake)


    I have some non WordPRess sites so I cannot use plugins, so how can I take advantage of lscache?

    I have checked your docs, and it only gives advice to enable caching, which I have done
    <IfModule LiteSpeed>
    CacheEnable public /
    </IfModule>

    But this is making no difference to the site performance.

    How can I also use the other features, like minification etc?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter lordsnake

    (@lordsnake)

    actually, using the above directive to enable caching actually make the performance of the site worse.

    • This reply was modified 2 years, 3 months ago by lordsnake.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    without plugin , you can only get the basic caching , and that line alone won’t work

    you will need something like

    
    RewriteRule .* - [E=Cache-Control:max-age=600]
    

    to designate the URIs to be cached and TTL

    and you can check the HTTP response header to make sure you see the cache hit

    you need to take in mind to exclude something that should not be cached, like wp-admin , my-account, checkout and cart …etc

    it’s better to use plugin to cache it

    Best regards,

    Thread Starter lordsnake

    (@lordsnake)

    I cannot use a plugin as there is no plugin available. I am not using WordPRess.

    Plugin Support qtwrk

    (@qtwrk)

    okay , then I guess rewrite rule is the only way if it’s not supported CMS

    here is some more example

    Thread Starter lordsnake

    (@lordsnake)

    so what I am not clear on is whether I have to use
    CacheEnable public /

    as well as
    RewriteRule .* – [E=cache-control:max-age=300]

    Plugin Support qtwrk

    (@qtwrk)

    you need to enable both

    first line is to tell server to enable cache engine

    second line is to tell server , which URL to cache , and how long to cache.

    Thread Starter lordsnake

    (@lordsnake)

    I used this, but again, it has mad ethe performance worse, quite a lot worse.

    <IfModule LiteSpeed>
      CacheEnable public /
      RewriteEngine On
      RewriteRule .* - [E=cache-control:max-age=14400]
    </IfModule>
    Plugin Support qtwrk

    (@qtwrk)

    that’s weird

    this directive only takes effect AFTER the page is cached

    please check by http response header , to see if cache worked , and what is your webserver?

    Thread Starter lordsnake

    (@lordsnake)

    the response headers show

    x-litespeed-cache: hit
    x-turbo-charged-by: LiteSpeed

    its litespeed webserver, obviously

    Plugin Support qtwrk

    (@qtwrk)

    what’s TTFB on main request with and without cache?

    Thread Starter lordsnake

    (@lordsnake)

    here is the gtmetrix scores

    https://gtmetrix.com/reports/kopage.uk/AdUaOY75/

    While the gtmetrix score for the site is obviously great without lscache, the pagespeed insight score are not. Thus why I am looking to make improvements.

    pagespeed insights is not giving me a TTFB
    https://pagespeed.web.dev/report?url=https%3A%2F%2Fkopage.uk%2F&form_factor=mobile

    Plugin Support qtwrk

    (@qtwrk)

    no , cache itself doesn’t optimize the page structure or its content , it just cache the output

    • This reply was modified 2 years, 3 months ago by qtwrk.
    Thread Starter lordsnake

    (@lordsnake)

    I know, but if caching actually makes the page slower, whats the point?

    Plugin Support qtwrk

    (@qtwrk)

    Please give me a GTMetrix report with cache hit

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘lscache without plugin’ is closed to new replies.