Join the community today
Become a Member

Wordpress Disable Or Remove KeyCDN Cache Enabler

Discussion in 'Blogs & CMS usage' started by eva2000, Sep 23, 2018.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    37,263
    8,145
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,538
    Local Time:
    12:18 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    If you ran centmin.sh menu option 22 and selected KeyCDN Cache Enabler as your Wordpress caching choice but now want to disable Cache Enabler, you can do so using following steps below:

    1. Disable Cache Enabler WP Plugin from WP Admin Plugin area

    2. In your nginx domain.com.conf and/or domain.com.ssl.conf vhost config file, comment out (add hash # in front) the Cache Enabler try_files rule and uncomment the standard Wordpress try_files rule for WP permalinks
    Code (Text):
      # 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;
    

    3. In your nginx domain.com.conf and/or domain.com.ssl.conf vhost config file, comment out (add hash # in front) the include file for Cache Enabler where yourdomain.com is your domain name
    Code (Text):
      #include /usr/local/nginx/conf/wpincludes/yourdomain.com/wpcacheenabler_yourdomain.com.conf;
    

    4. Then restart nginx + php-fpm services and run nginx config check to see if the nginx configuration is working
    Code (Text):
    nginx -t
    nprestart
    


    If you want to re-enable Cache Enabler just reverse what you did above, comment out the standard Wordpress try_files rule and uncomment the try_files rule for cache enabler, uncomment (remove hash #) from the include line and enable Cache Enabler plugin from WP Admin Plugin area and restart nginx + php-fpm.
     
    • Like Like x 2
..
Thread Status:
Not open for further replies.