Welcome to Centmin Mod Community
Register Now

Master Branch part 2 prep work fastcgi_cache support to centmin.sh menu option 22

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 6, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:51 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    part 2 prep work fastcgi_cache support to centmin.sh menu option 22

    Further work on centmin.sh menu option 22 fastcgi_cache support which is currently disable by default out of the box until further testing is done. For test server testing only you can enable the current version of fastcgi_cache support via persistent config file /etc/centminmod/custom_config.inc set variable WP_FASTCGI_CACHE='y' prior to launch centmin.sh menu option 22. There are a few auto created include files to allow your own custom settings to persistent when you select fastcgi_cache as caching method for centmin.sh menu option 22 installed wordpress including:

    within nginx.conf include file /usr/local/nginx/conf/wpfastcgi_cache_path_includes.conf for setting up fastcgi_cache_path directive and parameters

    within nginx.conf include file /usr/local/nginx/conf/wpfastcgi_cache_map.conf there are the following:

    /usr/local/nginx/conf/wpfastcgi_cache_map_include_mobile.conf - to set your own custom mobile user agents to exclude from cache
    /usr/local/nginx/conf/wpfastcgi_cache_map_include_nocachecookie.conf - to set your own cookies to exclude from cache
    /usr/local/nginx/conf/wpfastcgi_cache_map_include_nocacheuri.conf - to set your own urls to exclude from cache
    /usr/local/nginx/conf/wpfastcgi_cache_map_debug.conf - to set IP addresses for ISP and server to reveal other diagnostic headers that are hidden from users not whitelisted in this file


    within wordpress nginx site vhost config file /usr/local/nginx/conf/php.conf include file is replaced with fastcgi_cache version that is unique to each site domain vhost name i.e. /usr/local/nginx/conf/wpincludes/domain.com/php-fastcgicache.conf

    within wordpress nginx site vhost config file include file /usr/local/nginx/conf/wpincludes/wpfc.domain.com/wpfastcgicache_include_wpfc.domain.com.conf is added for general fastcgi_cache settings

    This is very early development work so code and logic may change in future as more testing is done.

    Continue reading...

    Centmin Mod Github Master branch

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