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

Wordpress WP Cacher Enabler Plugin by KeyCDN folks

Discussion in 'Blogs & CMS usage' started by eva2000, Dec 2, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    1:53 PM
    1.11
    10.2
    Interested on this as well.
     
  3. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yes testing it out on a new centmin.sh option 22 generated Wordpress + WP Super Cache set and doing manual conversions for now.

    upload_2015-12-2_5-26-58.png

    So to convert from WP Super Cache based to WP Cache Enabler based I created a new include file /usr/local/nginx/conf/wpcacheenabler_domain1.com.conf

    contents of /usr/local/nginx/conf/wpcacheenabler_domain1.com.conf
    Code (Text):
        set $cache_uri $request_uri;
    
        # bypass cache if POST requests or URLs with a query string
        if ($request_method = POST) {
            set $cache_uri 'nullcache';
        }
        if ($query_string != "") {
            set $cache_uri 'nullcache';
        }
    
        # bypass cache if URLs containing the following strings
        if ($request_uri ~* "(\?add-to-cart=|/cart/|/my-account/|/checkout/|/shop/checkout/|/store/checkout/|/customer-dashboard/|/addons/|/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
            set $cache_uri 'nullcache';
        }
    
        # bypass cache if the cookies containing the following strings
        if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in|edd_items_in_cart|woocommerce_items_in_cart|woocommerce_cart_hash|wptouch_switch_toogle") {
            set $cache_uri 'nullcache';
        }
    
        # custom sub directory e.g. /blog
        set $custom_subdir '';
    
        # default html file
        set $cache_enabler_uri '${custom_subdir}/wp-content/cache/cache-enabler/${http_host}${cache_uri}index.html';
    
        # webp html file
        if ($http_accept ~* "image/webp") {
            set $cache_enabler_uri '${custom_subdir}/wp-content/cache/cache-enabler/${http_host}${cache_uri}index-webp.html';
        }

    then deactivate wp super cache and wp super cache purge cache addons from wp admin

    then edit nginx vhosts for test domain1.com site at /usr/local/nginx/conf/conf.d/domain1.com.conf (and do same for ssl version at /usr/local/nginx/conf/conf.d/domain1.com.ssl.conf)

    This is tested on Centmin Mod 123.09beta01 which has commented out php redis nginx level cache support too which is 45% faster than WP Super Cache see benchmarks of WP Super Cache vs Nginx level Redis Cache.

    paying attention to web root location change for try_files too
    Code (Text):
      # for wp cache enabler plugin
      try_files $cache_enabler_uri $uri $uri/ $custom_subdir/index.php?$args;

    and adding new include file
    Code (Text):
    include /usr/local/nginx/conf/wpcacheenabler_domain1.com.conf;
    #include /usr/local/nginx/conf/wpsupercache_domain1.com.conf;
    # https://community.centminmod.com/posts/18828/
    #include /usr/local/nginx/conf/rediscache_domain1.com.conf;

    Code (Text):
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    #server {
    #            listen   80;
    #            server_name domain1.com;
    #            return 301 $scheme://www.domain1.com$request_uri;
    #       }
    
    server {
      server_name domain1.com www.domain1.com;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/domain1.com/log/access.log combined buffer=256k flush=60m;
      error_log /home/nginx/domains/domain1.com/log/error.log;
    
      root /home/nginx/domains/domain1.com/public;
    
    include /usr/local/nginx/conf/wpcacheenabler_domain1.com.conf;
    #include /usr/local/nginx/conf/wpsupercache_domain1.com.conf;
    # https://community.centminmod.com/posts/18828/
    #include /usr/local/nginx/conf/rediscache_domain1.com.conf;
    
      location / {
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # for wordpress super cache plugin
      #try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # for wp cache enabler plugin
      try_files $cache_enabler_uri $uri $uri/ $custom_subdir/index.php?$args;
    
      # Wordpress Permalinks
      #try_files $uri $uri/ /index.php?q=$uri&$args;
    
      # Nginx level redis Wordpress
      # https://community.centminmod.com/posts/18828/
      #try_files $uri $uri/ /index.php?$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/domain1.com/htpasswd_wplogin;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /(xmlrpc\.php) {
        limit_req zone=xwprpc burst=45 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
      include /usr/local/nginx/conf/wpsecure_domain1.com.conf;
      include /usr/local/nginx/conf/php-wpsc.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/php-rediscache.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    


    restart nginx and php-fpm
    Code (Text):
    nprestart


    Seems WP Cache Enabler is simpler to configure so far :)

    Setup a cronjob to expiry the cache as outlined at Wordpress - WP Cacher Enabler Plugin by KeyCDN folks | Page 3 | Centmin Mod Community

    Modify the path to your wp-content/cache/cache-enabler directory and edit ${DELAY} with a 3 digit number i.e. 123 which means delay run by 123 seconds. This ensures no 2 cronjobs run into each other at the same time. And edit ${vhostname} with your domain.com name.
    Code (Text):
    16 23 * * * echo "$vhostname cacheenabler cron"; sleep ${DELAY}s ; rm -rf /home/nginx/domains/${vhostname}/public/wp-content/cache/cache-enabler/* > /dev/null 2>&1
     
    Last edited: Oct 10, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    Heads up folks, I've added preliminary support for WP Cache Enabler plugin setup via centmin.sh menu option 22 for Centmin Mod 123.09 beta01 builds for testing. Actual commit add Wordpress Cache Enabler Plugin support to centmin.sh option 22 · centminmod/centminmod@a5fdbce · GitHub

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu               
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 22
    --------------------------------------------------------
    
    Code:
    -------------------------------------------------------------
    Setup full Nginx vhost + Wordpress + WP Super Cache
    -------------------------------------------------------------
    
    Enter vhost domain name you want to add (without www. prefix): domain2.com
    
    Create a self-signed SSL certificate Nginx vhost? [y/n]: y
    
    Do you want to install WP Cache Enabler Plugin instead of WP Super Cache ? [y/n]: y
    Enter email address for Wordpress Installation: EMAILADDY
    Create FTP username for vhost domain (enter username): ***
    Do you want to auto generate FTP password (recommended) [y/n]: y
    
    FTP username you entered: ***
    FTP password auto generated: ***
    Code:
    ---------------------------------------------------------------
    SSL Vhost Setup...
    ---------------------------------------------------------------
    
    ---------------------------------------------------------------
    Generating self signed SSL certificate...
    CSR file can also be used to be submitted for paid SSL certificates
    If using for paid SSL certificates be sure to keep both private key and CSR safe
    creating CSR File: domain2.com.csr
    creating private key: domain2.com.key
    creating self-signed SSL certificate: domain2.com.crt
    Generating a 2048 bit RSA private key
    ......................+++
    ...................+++
    writing new private key to 'domain2.com.key'
    -----
    Signature ok
    subject=/C=US/ST=California/L=Los Angeles/O=domain2.com/OU=domain2.com/CN=domain2.com
    Getting Private key
    If you answer yes when prompted to install WP Cache Enabler instead of WP Super Cache, you auto install WP Cache Enabler and Optimus WP Plugins + auto activate them. WP Super Cache plugin gets installed but not activated, convenient if you need to switch between them.

    Also all the additional addons which @Matt Williams said he didn't need are now optional and not installed by default.
    Code:
    ------------------------------------------------------------
    Setup Wordpress + Super Cache for domain2.com
    ------------------------------------------------------------
    Downloading WordPress 4.3.1 (en_US)...
    Using cached file '/root/.wp-cli/cache/core/wordpress-4.3.1-en_US.tar.gz'...
    Success: WordPress downloaded.
    Success: Generated wp-config.php file.
    0 */4 * * * /usr/bin/cminfo_updater
    */15 * * * * sleep 190s ; wget -O - -q -t 1 http://domain1.com/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1
    0 */8 * * * sleep 499s ;/root/tools/wp_updater_domain1.com.sh 2>/dev/null
    */15 * * * * sleep 265s ; wget -O - -q -t 1 http://domain2.com/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1
    Success: WordPress installed successfully.
    ERROR 1146 (42S02) at line 1: Table 'wp24859db_3409.wp_users' doesn't exist
    ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''autoload')' at line 1
    Success: Rewrite structure set.
    No local changes to save
    Already up-to-date.
    ------------------------------------------------------------
    Installing Responsive (1.9.7.7)
    Downloading install package from http://downloads.wordpress.org/theme/responsive.1.9.7.7.zip...
    Using cached file '/root/.wp-cli/cache/theme/responsive-1.9.7.7.zip'...
    Unpacking the package...
    Installing the theme...
    Theme installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    Activating 'responsive'...
    Success: Switched to 'Responsive' theme.
    ------------------------------------------------------------
    ------------------------------------------------------------
    Installing WP Super Cache (1.4.6)
    Downloading install package from https://downloads.wordpress.org/plugin/wp-super-cache.1.4.6.zip...
    Using cached file '/root/.wp-cli/cache/plugin/wp-super-cache-1.4.6.zip'...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    ------------------------------------------------------------
    Installing WP Super Cache - Clear all cache (1.3.1)
    Downloading install package from https://downloads.wordpress.org/plugin/wp-super-cache-clear-cache-menu.1.3.1.zip...
    Using cached file '/root/.wp-cli/cache/plugin/wp-super-cache-clear-cache-menu-1.3.1.zip'...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    ------------------------------------------------------------
    ------------------------------------------------------------
    Installing Cache Enabler - WordPress Cache (1.0.7)
    Downloading install package from https://downloads.wordpress.org/plugin/cache-enabler.zip...
    Using cached file '/root/.wp-cli/cache/plugin/cache-enabler-1.0.7.zip'...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    Activating 'cache-enabler'...
    Success: Plugin 'cache-enabler' activated.
    ------------------------------------------------------------
    Installing Optimus - WordPress Image Optimizer (1.4.3)
    Downloading install package from https://downloads.wordpress.org/plugin/optimus.zip...
    Using cached file '/root/.wp-cli/cache/plugin/optimus-1.4.3.zip'...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    Activating 'optimus'...
    Success: Plugin 'optimus' activated.
    ------------------------------------------------------------
    ------------------------------------------------------------
    Installing Sucuri Security - Auditing, Malware Scanner and Security Hardening (1.7.16)
    Downloading install package from https://downloads.wordpress.org/plugin/sucuri-scanner.1.7.16.zip...
    Using cached file '/root/.wp-cli/cache/plugin/sucuri-scanner-1.7.16.zip'...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    Activating 'sucuri-scanner'...
    Success: Plugin 'sucuri-scanner' activated.
    ------------------------------------------------------------
    Installing Disable XML-RPC (1.0.1)
    Downloading install package from https://downloads.wordpress.org/plugin/disable-xml-rpc.1.0.1.zip...
    Using cached file '/root/.wp-cli/cache/plugin/disable-xml-rpc-1.0.1.zip'...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    Activating 'disable-xml-rpc'...
    Success: Plugin 'disable-xml-rpc' activated.
    ------------------------------------------------------------
    Downloading update from https://downloads.wordpress.org/plugin/akismet.3.1.5.zip...
    Using cached file '/root/.wp-cli/cache/plugin/akismet-3.1.5.zip'...
    Unpacking the update...
    Installing the latest version...
    Removing the old version of the plugin...
    Plugin updated successfully.
    Success: Translations updates are not needed for the 'English (US)' locale.
    Success: Updated 1/1 plugins.
    name    old_version     new_version     status
    akismet 3.1.3   3.1.5   Updated
    
    8 installed plugins:
      I akismet                         3.1.5
      A cache-enabler                   1.0.7
      A disable-xml-rpc                 1.0.1
      I hello                           1.6
      A optimus                         1.4.3
      A sucuri-scanner                  1.7.16
      I wp-super-cache                  1.4.6
      I wp-super-cache-clear-cache-menu 1.3.1
    
    Legend: I = Inactive, A = Active
    ------------------------------------------------------------
    Auto generated uninstall script and auto cron wp updating scripts
    Code:
    ------------------------------------------------------------
    Created uninstall script
    /root/tools/wp_uninstall_domain2.com.sh
    ------------------------------------------------------------
    ------------------------------------------------------------
    Created wp_updater_domain2.com.sh script
    /root/tools/wp_updater_domain2.com.sh
    ------------------------------------------------------------
    0 */4 * * * /usr/bin/cminfo_updater
    */15 * * * * sleep 190s ; wget -O - -q -t 1 http://domain1.com/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1
    0 */8 * * * sleep 499s ;/root/tools/wp_updater_domain1.com.sh 2>/dev/null
    */15 * * * * sleep 265s ; wget -O - -q -t 1 http://domain2.com/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1
    0 */8 * * * sleep 200s ;/root/tools/wp_updater_domain2.com.sh 2>/dev/null
    
    Pure-ftpd virtual FTP login details and nginx vhost info
    Code:
    -------------------------------------------------------------
    FTP hostname : IP
    FTP port : 21
    FTP mode : FTP (explicit SSL)
    FTP Passive (PASV) : ensure is checked/enabled
    FTP username created for domain2.com : ***
    FTP password created for domain2.com : ***
    -------------------------------------------------------------
    vhost for domain2.com created successfully
    
    domain: http://domain2.com
    vhost conf file for domain2.com created: /usr/local/nginx/conf/conf.d/domain2.com.conf
    
    vhost ssl for domain2.com created successfully
    
    domain: https://domain2.com
    vhost ssl conf file for domain2.com created: /usr/local/nginx/conf/conf.d/domain2.com.ssl.conf
    /usr/local/nginx/conf/ssl_include.conf created
    Self-signed SSL Certificate: /usr/local/nginx/conf/ssl/domain2.com/domain2.com.crt
    SSL Private Key: /usr/local/nginx/conf/ssl/domain2.com/domain2.com.key
    SSL CSR File: /usr/local/nginx/conf/ssl/domain2.com/domain2.com.csr
    Backup SSL Private Key: /usr/local/nginx/conf/ssl/domain2.com/domain2.com-backup.key
    Backup SSL CSR File: /usr/local/nginx/conf/ssl/domain2.com/domain2.com-backup.csr
    
    upload files to /home/nginx/domains/domain2.com/public
    vhost log files directory is /home/nginx/domains/domain2.com/log
    
    ------------------------------------------------------------
    SSH commands to uninstall created Wordpress install and Nginx vhost:
      /root/tools/wp_uninstall_domain2.com.sh
    ------------------------------------------------------------
    
    ------------------------------------------------------------
    Wordpress Auto Updater created at:
      /root/tools/wp_updater_domain2.com.sh
    cronjob set for every 8 hours update (3x times per day)
    ------------------------------------------------------------
    
    WP site details
    Code:
    Wordpress domain: domain2.com
    Wordpress DB Name: wp***_3409
    Wordpress DB User: wpdb***
    Wordpress DB Pass: wpdbs***
    Wordpress Admin User ID: 321587
    Wordpress Admin User: zFRL6dtN8rE70z10O1cwp16310
    Wordpress Admin Pass: zmz1otl6BaLwps2985
    Wordpress Admin Email: EMAILADDY
    
    Wordpress wp-login.php password protection info:
    wp-login.php protection file /home/nginx/domains/domain2.com/htpasswd_wplogin
    wp-login.php protection Username: u/SDdAjbfvolLCx23046
    wp-login.php protection Password: pGXIKJ3EvpGpmtcK+He5y23046
    http://u/SDdAjbfvolLCx23046:pGXIKJ3EvpGpmtcK+He5y23046@domain2.com/wp-login.php
    
    Resetting wp-login.php protection:
    Step 1. remove protection file at /home/nginx/domains/domain2.com/htpasswd_wplogin
         rm -rf /home/nginx/domains/domain2.com/htpasswd_wplogin
    Step 2. run command:
         /usr/local/nginx/conf/htpasswd.sh create /home/nginx/domains/domain2.com/htpasswd_wplogin YOURUSERNAME YOURPASSWORD
    Step 3. restart Nginx + PHP-FPM services
         nprestart
    
    -------------------------------------------------------------
    Current vhost listing at: /usr/local/nginx/conf/conf.d/
    
                       
    Nov 28  11:55   845    ssl.conf
    Nov 28  11:55   1.1K   demodomain.com.conf
    Nov 30  11:15   1.6K   virtual.conf
    Dec 1   16:15   4.9K   domain1.com.ssl.conf
    Dec 1   20:13   2.8K   domain1.com.conf
    Dec 1   20:40   2.7K   domain2.com.conf
    Dec 1   20:40   5.0K   domain2.com.ssl.conf
    
    -------------------------------------------------------------
    Current vhost ssl files listing at: /usr/local/nginx/conf/ssl/domain2.com
    
                       
    Dec 1   20:38   1.7K   domain2.com.key
    Dec 1   20:38   1.1K   domain2.com.csr
    Dec 1   20:38   1.3K   domain2.com.crt
    Dec 1   20:38   1.7K   domain2.com-backup.key
    Dec 1   20:38   1.1K   domain2.com-backup.csr
    Dec 1   20:39   45     hpkp-info-primary-pin.txt
    Dec 1   20:39   45     hpkp-info-secondary-pin.txt
    Dec 1   20:39   424    dhparam.pem
    
    Haven't updated text to take into account WP Cache Enabler yet so some steps do not apply
    Code:
    ------------------------------------------------------------
    To complete setup:
    1. Enable Permalinks (DO NOT use links with .html extensions for performance reasons) i.e. /%post_id%/%postname%/
    2. Settings Menu > Super Cache > Easy tab and enable it by checking Caching On (Recommended) and hit Update Status
    3. Advanced tab & check Use mod_rewrite serve cache files & Don’t cache pages with GET parameters and Known User.
       (Recommended), Cache rebuild for anonymous users, clear all cache when a post or page updated & hit Update Status
    4. WP Security Menu > Settings > Check All except Enable Live Traffic tool and hit Update settings
    5. Settings Menu > Updates Notifier and setup your notify email address and cronjob (save and test button to check)
    6. Settings Mnenu > Autoptimize and check Optimize HTML, JavaScript and CSS options (show advanced settings)
    7. Settings Menu > Limit Login Attempts and configure as desired or leave as defaults
    8. Sucuri Security Menu and top left click Generate API key for your domain/email and configure your Settings tab
    9. WP-Optimize Menu and configure as needed
    10. Memory Usage Menu > Settings and adjust accordingly
    11. GTmetrix Menu > setup and register your GTmetrix Account and API Key
    12. go-newrelic plugin installed but not activated read https://wordpress.org/plugins/go-newrelic/installation/
    13. Tools > P3 Plugin Profiler > Start Scan to profile all your plugins
    14. Plugins > Query Monitor is disabled by default, enable to check MySQL query stats
    15. Plugins > DB Cache Reloaded disabled by default unsure if works with Wordpress 4.x ?
    16. Appearance > Theme Options (Responsive theme) > Home Page nav bar > Uncheck Overrides Wordpress front page option
    17. Seo Menu (Yoast SEO) > configure accordingly
    18. Settings > UpdraftPlus Backups > Settings set file/database backup intervals & optional backup to remote storage
    19. Analytics > Settings > configure your Google Analytics UA Code
    ------------------------------------------------------------
    
    Check to see if WP Cache Enabler is working as it's auto installed and activated out of the box. Looks like it's working and less finicky than WP Super Cache :)

    Code (Text):
    curl -s http://domain2.com | grep 'Cache Enabler'
    <!-- Cache Enabler by KeyCDN @ 01.12.2015 20:47:54 (html) -->


    upload_2015-12-2_7-11-0.png
     
    Last edited: Dec 2, 2015
    • Like Like x 1
  5. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    Your awesome! Add it to 08 stable (y)
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    probably stay in 123.09beta01 for more testing and more feedback ;)
     
    Last edited: Sep 8, 2016
  7. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    Now your going to make me switch to using the beta install lol!
     
  8. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah but don't you want to test all the goodies outlined in Centmin Mod 123.09beta01 Change Log ? :D ;)
     
  9. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    I do, but it changes often which is great but the stable never changes ( sometimes ) I don't want to put a clients site with 100K hits a day on a beta install lol so I just stick with the stable
     
  10. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah.. that's why i have stable and beta builds ;) these additions to beta need testing first ;)
     
    • Informative Informative x 1
  11. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
  12. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    I will donate $100 + my usual annual premium membership IF you add this to the stable version :);):whistle:(y)
     
    • Like Like x 2
  13. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    heh still needs testing as it's risky to introduce an untested setup into a stable release - the same logic that prevents you introducing 123.09beta for your clients in production sites as me introducing untested/beta code into 123.08stable :)

    oh and faster and more 123.09beta testing and feedback, the faster it goes stable ;) :D
     
    Last edited: Dec 2, 2015
  14. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    I've installed it on numerous sites, I can tell you, it works very well :=)
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    i mean the centmin.sh 22 automated routine testing :D
     
  16. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    1:53 PM
    1.11
    10.2
    I'm always using the latest beta (09beta currently) branch since last 2 years.
    and serving 500K - 1M page views per day wp sites/forums without any issues.
     
    Last edited: Dec 2, 2015
    • Like Like x 2
  17. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
  18. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    So I decided to give the beta a test run. I love it. But I wanted to test the new option 22 w/ cache enabler installed and noticed 2 big things..

    1. It didn't install the required:
    2. it didn't install the required:
    which I place it in:
    file and add it to:

    without these 2 things installed, cache enabler is no good.
     
  19. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    best to post the original nginx vhost conf files to double check, they should of be created

    one is an include file at /usr/local/nginx/conf/wpcacheenabler_${vhostname}.conf
    Code:
    include /usr/local/nginx/conf/wpcacheenabler_${vhostname}.conf;
    #include /usr/local/nginx/conf/wpsupercache_${vhostname}.conf;
    # https://community.centminmod.com/posts/18828/
    #include /usr/local/nginx/conf/rediscache_${vhostname}.conf;  
    and other at centminmod/wpsetup.inc at 123.09beta01 · centminmod/centminmod · GitHub which gets auto uncommented if cache enabler is selected. But i noticed a bug in the variables were not escaped will fix that. Update: fixed at update inc/wpsetup.inc properly escape cache enable try_files · centminmod/centminmod@5bc118c · GitHub

    FYI, when installer asks if you want to install KeyCDN Cacher enabler instead of WP Super Cache, make sure to answer = y. Otherwise, WP Super Cache is installed and setup.
    Code:
    Enter vhost domain name you want to add (without www. prefix): domain2.com
    
    Create a self-signed SSL certificate Nginx vhost? [y/n]: y
    
    Do you want to install WP Cache Enabler Plugin instead of WP Super Cache ? [y/n]: y
     
    Last edited: Dec 3, 2015
  20. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    1:53 AM
    latest
    10
    I see it now. However, it created:

    but was commented out and supercach was uncommented even though I chose to install cache enabler at menu option 22

    but it didn't install: