Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch update centmin.sh menu option 22 cache keys in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 22, 2023.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:17 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update centmin.sh menu option 22 cache keys in 130.00beta01

    - update centmin.sh menu option 22 for fastcgi_cache and redis nginx level Wordpress cache keys to include $http_accept_encoding request header as part of the cache key
    - this update changes redis nginx level cache key in /usr/local/nginx/conf/php-rediscache.conf which is generated when you select redis nginx level cache for centmin.sh menu option 22. The update changes the cache key from

    set $key "nginx-cache:$scheme$request_method$host$request_uri";

    to

    set $key "nginx-cache:$scheme$request_method$host$request_uri$http_accept_encoding";

    - this update changes private experimental optionally enabled PHP-FPM fastcgi_cache method for Wordpress cache and updates it's cache key generated in /usr/local/nginx/conf/wpincludes/domain.com/php-fastcgicache.conf from

    fastcgi_cache_key $scheme$request_method$host$request_uri;

    to

    fastcgi_cache_key "$scheme$request_method$host$request_uri$http_accept_encoding";


    - existing Centmin Mod 130.00beta01 users with existing Wordpress installs created via centmin.sh menu option 22, can update their instances by running cmupdate command and then run and exit centmin.sh menu once to auto apply changes which they can verify in their /usr/local/nginx/conf/php-rediscache.conf include file and /usr/local/nginx/conf/wpincludes/domain.com/php-fastcgicache.conf include files where domain.com is your domain name. Or they can run cmupdate command and run /usr/local/src/centminmod/tools/fix-cache-keys.sh script which applies the updates manually.

    Continue reading...

    130.00beta01 branch

    Support Centmin Mod


    If you find Centmin Mod useful, please help support Centmin Mod