Want more timely Centmin Mod News Updates?
Become a Member

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

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 5, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:40 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update centmin.sh menu 22 cache enabler setup in 123.09beta01

    - Update fix /usr/local/nginx/conf/wpcacheenabler_map.conf Beta Branch - centmin.sh menu 22 add WPCLI_CE_QUERYSTRING_INCLUDED='n' in 123.09beta01
    - 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...

    123.09beta01 branch


     
  2. David Schargel

    David Schargel Member

    40
    9
    8
    Feb 2, 2020
    Portland Oregon US
    Ratings:
    +25
    Local Time:
    1:40 PM
    Thanks for the update! These two new query strings are for MailChimp tracking, not Mailgun.
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:40 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    ah ha MailChimp :D