Join the community today
Register Now

Beta Branch update centmin.sh menu 22 cache enabler cache config in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 28, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    55,156
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update centmin.sh menu 22 cache enabler cache config in 123.09beta01

    - Update query string cache inclusion routine for cache enabler plugin to extend upon Beta Branch - update centmin.sh menu option 22 cache enabler cache config in 123.09beta01
    - Add auto update fix for cache enabler 1.4.0+ scheme based cached file support for existing cache enabler wordpress sites as opposed to new sites Beta Branch - update centmin.sh menu option 22 cache enabler for v1.4.0 support in 123.09beta01.
    - Existing cache enabler wordpress site users will first update 123.09beta01 local code via cmupdate command and then run once centmin.sh menu which will now auto detect all of your wordpress cache enabler enabled sites to see if their respective generated include files have the latest configuration update in /usr/local/nginx/conf/wpincludes/${vhostname}/wpcacheenabler_${vhostname}.conf where ${vhostname} is your wordpress domain name


    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,156
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Example of centmin.sh menu run after cmupdate that triggers the new wordpress cache enabler auto fix update routine.

    Running centmin.sh will show start and completion stages of auto fix routine and display a log file which has more details of what was updated i.e. /root/centminlogs/centminmod_123.09beta01.b568_280820-010613_cache_enabler_scheme_fix.log
    Code (Text):
    ./centmin.sh
    
    #########################################################################
    Starting Automatic Wordpress Cache Enabler Advanced Cache Config Update
    https://community.centminmod.com/threads/20256/
    
    ce_count=0 updated:
    ce_count=1 updated: domain1.com
    ce_count=2 updated: domain2.com
    
    Completed Automatic Wordpress Cache Enabler Advanced Cache Config Update
    saved log at /root/centminlogs/centminmod_123.09beta01.b568_280820-010613_cache_enabler_scheme_fix.log
    #########################################################################
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com  
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ]
    

    Inspecting the contents of generated log at /root/centminlogs/centminmod_123.09beta01.b568_280820-010613_cache_enabler_scheme_fix.log shows 2 wordpress sites were auto updated for domain1.com and domain2.com which had cache enabler plugin installed. The log will show also the auto backed up copy's locatation of the include file before the auto fixes were applied as well as output the updated '${cache_uri}${scheme}-index' format (compared to old format '${cache_uri}index')
    Code (Text):
    cat /root/centminlogs/centminmod_123.09beta01.b568_280820-010613_cache_enabler_scheme_fix.log
    #########################################################################
    Starting Automatic Wordpress Cache Enabler Advanced Cache Config Update
    https://community.centminmod.com/threads/20256/
    
    
    cache enabler plugin 1.4.6 (1004006)
    cache enabler v1.4.0+ cache format update for /usr/local/nginx/conf/wpincludes/domain1.com/wpcacheenabler_domain1.com.conf
    backup /usr/local/nginx/conf/wpincludes/domain1.com/wpcacheenabler_domain1.com.conf
    to /usr/local/nginx/conf/wpincludes/domain1.com/wpcacheenabler_domain1.com.conf-autobackup
        set $cache_enabler_uri '${custom_subdir}/wp-content/cache/cache-enabler/${http_host}${cache_uri}${scheme}-index.html';
            set $cache_enabler_uri '${custom_subdir}/wp-content/cache/cache-enabler/${http_host}${cache_uri}${scheme}-index-webp.html';
    
    cache enabler plugin 1.4.6 (1004006)
    cache enabler v1.4.0+ cache format update for /usr/local/nginx/conf/wpincludes/domain2.com/wpcacheenabler_domain2.com.conf
    backup /usr/local/nginx/conf/wpincludes/domain2.com/wpcacheenabler_domain2.com.conf
    to /usr/local/nginx/conf/wpincludes/domain2.com/wpcacheenabler_domain2.com.conf-autobackup
        set $cache_enabler_uri '${custom_subdir}/wp-content/cache/cache-enabler/${http_host}${cache_uri}${scheme}-index.html';
            set $cache_enabler_uri '${custom_subdir}/wp-content/cache/cache-enabler/${http_host}${cache_uri}${scheme}-index-webp.html';
    
    Completed Automatic Wordpress Cache Enabler Advanced Cache Config Update
    saved log at /root/centminlogs/centminmod_123.09beta01.b568_280820-010613_cache_enabler_scheme_fix.log
    #########################################################################
    


    heads up for @ct_roy @jcat
     
    Last edited: Aug 28, 2020