Discover Centmin Mod today
Register Now

Cache-Enabler Plugin Is the Cache Enabler continuing to work?

Discussion in 'Blogs & CMS usage' started by upgrade81, Aug 17, 2022.

  1. upgrade81

    upgrade81 Member

    285
    17
    18
    Sep 5, 2016
    CH
    Ratings:
    +29
    Local Time:
    4:57 AM
    1.17
    10.3
    I recently switched from Redis to Cache enabler on 3 of my sites.
    2 sites were initially created on a new server with option 22> cache enabler and then migrated the files, they seem to work fine.

    the other site that was installed using Redis, and then converted by editing its nginx vhost seems to have some problems.
    We are talking about a site with high traffic.

    the problem is that I don't understand if it is using php to provide cached pages or the advanced configuration of nginx (even if this is properly configured)

    in the header response I see:
    Code:
    x-cache-handler: cache-enabler-engine
    Also in the source code of the page I see the comment served through cache enabler.

    However, I see a significant increase in the use of the php-fpm processes.
    This, even if the cache is fully built around 36000 directory present on disk. I'm using warm cache to rebuild it, and I'm also testing other software (optimus prime cache) that runs locally on the server.


    Some idea? everything is correct?

    I attach some clarifying screenshots.
     

    Attached Files:

  2. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    10:57 AM
    Mainline
    10.2
    Try to populate your cache, then stop php-fpm and mysql service.
    Guest should be able to load your site fine using the cache files.
     
    Last edited: Aug 17, 2022
  3. upgrade81

    upgrade81 Member

    285
    17
    18
    Sep 5, 2016
    CH
    Ratings:
    +29
    Local Time:
    4:57 AM
    1.17
    10.3
    Is there anything else to fix besides the Vhost of the site, where should the lines related to "rediscache_domain.com" be commented and those related to cache enabler "wpcacheenabler_domain.com.conf inserted in their place same for php-wpsc.conf?


    Stop Nginx?
    if I stop nginx nothing opens.
    If I stop mysqlm it returns an error in the database.
     
    Last edited: Aug 17, 2022
  4. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    10:57 AM
    Mainline
    10.2
    Sorry, I mean.. stop php-fpm and mysql service.

    So caching on the disk doesn't work as expected.
     
  5. upgrade81

    upgrade81 Member

    285
    17
    18
    Sep 5, 2016
    CH
    Ratings:
    +29
    Local Time:
    4:57 AM
    1.17
    10.3
    I created a completely new vhost and I noticed that Cache Enabler version 1.4.9 is installed automatically, I use the latest version 1.8.9 Can this be the problem?
     
  6. upgrade81

    upgrade81 Member

    285
    17
    18
    Sep 5, 2016
    CH
    Ratings:
    +29
    Local Time:
    4:57 AM
    1.17
    10.3
    Well now I have installed 1.4.9 on a site with less traffic.

    If I visit an AMP page it returns me: Content encoding error
    Has this happened to anyone before?
    With version 1.8.9 this didn't happen to me.

    Thank you very much
     
  7. eva2000

    eva2000 Administrator Staff Member

    49,300
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    12:57 PM
    Nginx 1.21.x
    MariaDB 10.x
    Did you use the Redis removal guide listed at at https://community.centminmod.com/tags/remove-wordpress-cache/ ?

    Did you then manually install Cache Enabler 1.8.9 ? Centmin Mod WordPress install via centmin.sh menu option uses a force downgraded Cache Enabler 1.4.9 version due to various issues with Cache Enabler 1.5.1+ new cache routines https://community.centminmod.com/th...hanges-breaking-wordpress-sites-search.20546/

    From https://community.centminmod.com/th...gacy-cache-mode-option-in-123-09beta01.20545/

    If source code says served via Cache Enabler, then usually it is cached

    However Cache Enabler 1.5.1+ and higher's caching is different to earlier versions and depending on what URLs and frequency of caching priming and whether you're configured Cache Enabler on Nginx side correctly (centmin.sh menu option 22 fresh installs automatically configure the Nginx side correctly), the very act of priming the cache might also add to load for PHP-FPM.

    You can verify if Centmin Mod's centmin.sh menu option 22 Wordpress Cache Enabler setup is working first, by creating a test dummy Wordpress install on same server or separate test hourly billed VPS server and testing load and caching priming to see if PHP-FPM shows excessive CPU/process load.