Nexcess Logo

How to use the Cache Enabler Plugin on your Site

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
November 05, 2019

Cache Enabler is an easy to use page caching plugin which will help improve the loading time of your site. The plugin will create static HTML files of pages and posts on the site, which will improve loading time of the site.

To change the settings for the Cache Enabler plugin in wp-admin; Settings > Cache Enabler

You can change the cache expiry time to a value like 10 or 24 which means the site cache would expire after 10 hours or 24 hours. Again this depends on what type of content or site you have.

It is possible to exclude cache by post ID, so if you have specific pages that you want to exclude from Cache Enabler plugin from caching then if you go to edit that page it will show the ID in wp-admin. Then copy the post ID into the settings.

It is also possible to exclude caching by cookie or using regex to exclude by URLs.

Example to exclude by cookies.

/^(wp-postpass|wordpress_logged_in|comment_author|wp-settings-|wp-resetpass-
|(woocommerce_|wp_woocommerce_session)_?)/

Example to exclude by URLs.

/(^\/store\/cart\/my-account\/checkout\/addons\/administrator\/resetpass\/register\
/login\/mepr\/account\/thank-you\/ref\/page/ref*\/?ref*\/?add-to-cart*\/?wc-api*\
/?wc-ajax=get_refreshed_fragments*\/?preview=true*\/?s=*\/)/


Other options that Cache Enabler you can clear the total cache and not just the cache for the homepage when a new post is published on the site.

By default the Cache Enabler plugin will not make any changes to the sites .htaccess file, the following code can be added into the beginner of the sites .htaccess file.


You will need to generate SSH credentials from the portal of your website so that you can edit the sites .htaccess file. An alternative would be to use a plugin like WP File Manager on your website. This would allow you to edit the sites .htaccess file directly to include the changes needed for Cache Enabler seen below:

(We should note if you are running a sub-directory multi-site, it will take the permissions from the parent directory, which may cause issues with specific setups.)

Nexcess
Nexcess

Nexcess, the premium hosting provider for WordPress, WooCommerce, and Magento, is optimized for your hosting needs. Nexcess provides a managed hosting infrastructure, curated tools, and a team of experts that make it easy to build, manage, and grow your business online. Serving SMBs and the designers, developers, and agencies who create for them, Nexcess has provided fully managed, high-performance cloud solutions for more than 22 years.


We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.