Learn about Centmin Mod LEMP Stack today
Become a Member

Master Branch update centmin.sh menu 22 cache enabler setup in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 16, 2020 at 8:42 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    45,151
    10,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,919
    Local Time:
    7:55 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    update centmin.sh menu 22 cache enabler setup in 123.09beta01

    - Update fix /usr/local/nginx/conf/wpcacheenabler_map.conf https://community.centminmod.com/threads/centmin-sh-menu-22-add-wpcli_ce_querystring_included-n-in-123-09beta01.20291/#post-86007
    - Update template references to PHP-FPM settings in generated php include files
    - At query string inclusion for ?mc_cid and ?mc_eid for mailgun so /usr/local/nginx/conf/wpcacheenabler_map.conf include file now looks like below. Existing users will need to manually update the map include file to below and then run commands for wp-cli to update the regex query string include

    Code (Text):
    cd /home/nginx/domain/yourdomain.com/public
    \wp option patch update cache-enabler incl_parameters '/^fbclid|mc_(cid|eid)|utm_(source|medium|campaign|term|content|expid)|gclid|fb_(action_ids|action_types|source)|age-verified|ao_noptimize|usqp|cn-reloaded|_ga|_ke$/' --allow-root
    

    the updated /usr/local/nginx/conf/wpcacheenabler_map.conf include file contents
    Code (Text):
    map $http_user_agent $cmwpcache_device {
        default                                     'desktop';
        ~*(iPad|iPhone|Android|IEMobile|Blackberry) 'mobile';
        "~*Firefox.*Mobile"                         'mobile';
        "~*ipod.*mobile"                            'mobile';
        "~*Opera\ Mini"                             'mobile';
        "~*Opera\ Mobile"                           'mobile';
        "~*Mobile"                                  'mobile';
        "~*Tablet"                                  'mobile';
        "~*Kindle"                                  'mobile';
        "~*Windows\ Phone"                          'mobile';
    }
    
    map $args $q_ignorearg {
      default               0;
      "~*fbclid"            1;
      "~*gclid"             1;
      "~*utm"               1;
      "~*fb_action_ids"     1;
      "~*fb_action_types"   1;
      "~*fb_source"         1;
      "~*age-verified"      1;
      "~*ao_noptimize"      1;
      "~*usqp"              1;
      "~*cn-reloaded"       1;
      "~*_ga"               1;
      "~*_ke"               1;
      "~*mc_cid"            1;
      "~*mc_eid"            1;
    }
    


    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.