• Resolved Argentum

    (@argentum)


    Hi,
    I yesterday realized that the hosting company for a site I manage used Litespeed servers. I have one other site on the different hosting and there Litespeed cache worked wonders. But not this time. The hosting company is a high profile one, the account has 2048MB PHP memory and the hosting company is considered a very serious one.

    Previously I used WP Fastest Cache (free) + Autoptimize (free) with the best practice settings. I disabled them and installed Litespeed plugin from the WordPress repo. I fiddled around with the settings (overwhelming for a beginner) but I got it working decently, though I got the feeling that it got less fast rather than faster. I benchmarked with GTMatrix the site with WP Fastest Cache + Autoptimize and with Litespeed plugin. The Litespeed plugin site was 1,5 – 2 seconds slower. Appr the same ratings. This puzzles me. The party crashed, me thinking that Litespeed, wow, speedy speedy. But no.

    What would be the way forward troubleshooting? Does Litespeed accept being beat by two free plugins? ?? I thought, Gzip aha! But then read that it is built-in in Litespeed server.

    I just updated PHP version from 7.2 to 7.4 but haven’t enabled Litespeed plugin for some more benchmarking this evening. Does PHP version influence how Litespeed cache works? My guess would be no.

    Any help appreciated.
    Magnus

    == Server Environment ==
    Operating System: Linux
    Software: LiteSpeed
    MySQL version: MySQL Community Server – (GPL) v5.7.29
    PHP Version: 7.4.5
    PHP Max Input Vars: 20000
    PHP Max Post Size: 512M
    GD Installed: Yes
    ZIP Installed: Yes
    Write Permissions: All right
    Elementor Library: Connected

    == WordPress Environment ==
    Version: 5.4
    WP Multisite: No
    Max Upload Size: 256 MB
    Memory limit: 2048M
    Permalink Structure: /%postname%/

    • This topic was modified 4 years, 10 months ago by Argentum.
Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    PHP ver/env may impact cache in 2 cases.

    1. before cache is generated , of course

    2. when you have ESI block , even the main page is cached , these ESI block may still need PHP to process the request , and this part it might be affected by PHP part.

    Another common issue I have seen is that , as LSCWP is server-level cache ,it requires server-level set up for the cache root (where stores the cache files)

    please make sure you have cache root set properly , otherwise cache won’t work properly.

    You can verify the cache status by checking HTTP response header, you should see “x-litespeed-cache: hit” which indicates cache hit.

    Best regards,

    Thread Starter Argentum

    (@argentum)

    Ok, thanks! Will have to check it out after opening hours.
    Magnus

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please keep us posted ??

    Best regards,

    Thread Starter Argentum

    (@argentum)

    I see that I got a warning in cPanel Litespeed Web Cache Warning:
    “LSCWP Already Enabled But Not Caching – Detected another active cache plugin. Please visit the WordPress Dashboard for further instructions. [LOG][3] Install is flagged [LOG][3] Ignore – Existing install but advanced cache not set”. I have disabled and deleted WP Fastest Cache and Autoptimize.

    I have this in my http response headers.
    x-litespeed-cache: miss

    I will delete the Litespeed plugin and try to start fresh.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    When you see x-litespeed-cache miss , if you refresh the page again , do you see cache: hit ?

    Best regards,

    Thread Starter Argentum

    (@argentum)

    I got rid of the warning in cPanel. Installed Litespeed again (it activated itself on its own, hmm), and when I refresh the cPanel Litespeed Cache Manager I get a warning
    [LOG][3] Install is flagged.
    And the headers show x-litespeed-cache: miss

    What could be wrong?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Even after 2 or 3 times refresh on page , still miss ?

    best regards,

    Thread Starter Argentum

    (@argentum)

    Yes, x-litespeed-cache: miss every time. And the warning in Cpanel:
    [LOG][3] Install is flagged

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please try:

    1. disable plugin

    2. go to cPanel file manager , go to /home/username/lscache/ directory , remove everything in that dir

    3. enable plugin

    4. check cache status.

    Best regards,

    Thread Starter Argentum

    (@argentum)

    I don’t have that directory. I have a lscmData directory with four files.
    ls_webcachemgr.log
    lscm.data
    readme
    settings

    • This reply was modified 4 years, 10 months ago by Argentum.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Coudl you please screenshot your cPanel file manager ?

    it should be like this

    View post on imgur.com

    Best regards,

    Thread Starter Argentum

    (@argentum)

    I get an error in the LSCM now.

    I think I will have to contact the hosting company. I don’t want to post my site’s urls here.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Well , the screenshot on file manage won’t show your URL , or even it does , you can mask it.

    the point is , that lscache directory , by default on cPanel server, is where cache files are stored , so if that dir doesn’t exist , cache files can not be saved , therefore , result as always miss.

    Best regards,

    Thread Starter Argentum

    (@argentum)

    This is what I get.
    LSCWP Already Enabled But Not Caching – Detected another active cache plugin. Please visit the WordPress Dashboard for further instructions. [LOG][3] Install is flagged [LOG][3] Ignore – Existing install but advanced cache not set

    There is no other caching plugins installed.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please ignore the cpanel cache manager , it’s not updated yet.

    Use wp-admin to install and activate it.

    Best regards,

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Puzzled: Litespeed cache slower than WP Fastest Cache + Autoptimize’ is closed to new replies.