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

  1. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,280
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,934
    Local Time:
    10:28 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update centmin.sh menu 22 cache enabler setup in 123.09beta01

    - At query string inclusion for ?ref 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|ref|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;
      "~*ref"               1;
    }
    


    Continue reading...

    Centmin Mod Github Master branch

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