Support » Plugin: LiteSpeed Cache » Slow slows when I use LSCache instead of Litespeed without plugin

  • Resolved iusmanswift

    (@iusmanswift)


    Slow slows when I use LSCache instead of Litespeed without plugin i.e just using .htaccess code…

    LSCache plugin slows site, however lscache without plugin is fine…

    But plugin provides more control over login user caching…

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    this could happens if you enable some expensive optimization ,then when cache miss , it could take more time to process it (like combine inline/external JS/CSS) or ESI request

    please try use the default setting first, it should provide same level of speed as rewrite rule solution , then you can start to check out which option slows you down.

    Best regards,

    Thread Starter iusmanswift

    (@iusmanswift)

    I’m using default settings…

    Default settings take more time to load…

    When I turn off all kind of css, js settings, It loads a little bit fast then…

    But, still it is slow than the code which i use instead of this plugin,….

    Problem is that, I’m not able to use esi…

    When I set put esi code in Newspaper X theme code pages, those blocks break…

    i.e changing code like [flex_block_4] to [esi flex_block_4] will break the code to work and it will show code on page instead of rendering the block…

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    for more as how much ?

    like what is average TTFB use rewrite rule and what is use plugin ?

    Best regards,

    Thread Starter iusmanswift

    (@iusmanswift)

    <IfModule LiteSpeed>
        CacheEnable public
        RewriteEngine On
        RewriteRule ^/esi/ - [E=esi_on:1]
        RewriteRule ^/esi/ - [E=cache-control:max-age=5]
        RewriteCond %{REQUEST_METHOD} ^GET|HEAD$
        RewriteCond %{HTTP_HOST} ^newsangels.com [NC]
        RewriteCond %{REQUEST_URI} !login|admin|register|cron|manra
        RewriteCond %{QUERY_STRING} !s
        RewriteCond %{HTTP_COOKIE} !wordpress_logged_in
        RewriteRule .* - [E=Cache-Control:max-age=3600]
        RewriteRule favicon\.ico$ - [E=cache-control:max-age=2592000]
        RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]
        RewriteRule ^wp\-content/.*/[^/]*(fonts|ico|css|js|jpg|jpeg|png|svg|gif|swf|webp|woff|woff2|ttf|otf|eot|txt)\.php - [E=cache-control:max-age=2592000]
        RewriteRule ^\.*/[^/]*(fonts|ico|css|js|jpg|jpeg|png|svg|gif|swf|webp|woff|woff2|ttf|otf|eot|txt)$ - [E=cache-control:max-age=2592000]
       
        RewriteCond %{REQUEST_METHOD} ^GET|HEAD$
        RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" - [E=Cache-Control:vary=ismobile]
        RewriteRule .* - [E=Cache-Control:max-age=3600]
    </IfModule>
    Thread Starter iusmanswift

    (@iusmanswift)

    This is the actual code:
    Above is modified:

        RewriteRule .*- [E=esi_on:1]
        RewriteRule .* - [E=cache-control:max-age=5]
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, but what’s the time on both cases ?

    if you are using ESI, specially when a lot of ESI blocks , it could slow a lot , as each ESI is an additional PHP request when cache is missed

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    When re-open it, please also change the topic status to “not solved”

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.