Join the community today
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

    45,201
    10,280
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,934
    Local Time:
    10:42 PM
    Nginx 1.19.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 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 New Member

    14
    5
    3
    Feb 2, 2020
    Ratings:
    +12
    Local Time:
    5:42 AM
    Thanks for the update! These two new query strings are for MailChimp tracking, not Mailgun.
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,280
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,934
    Local Time:
    10:42 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    ah ha MailChimp :D