Caching on Wordpress using nginx

Caching your wordpress using ClusterCS
Whether you want more speed, a better experience for your visitors, for SEO, or any personal reason, chances are you want a caching layer on your website.
Caching in ClusterCS is achieved by spending only a few minutes in the Control Panel.
Start by going in the Speed tab of your domain.

 

Now you should scroll down to add a New Condition Set

 

and set the following conditions, which I will explain lower:

 

path - not_contains - admin_ajax.php - this file is the main endpoint for ajax calls that usually need to happen without cache

cookie - not_contains - wordpress_logged_in – WordPress maintains a cookie which is an indicator of this state – wordpress_logged_in - if it caches it, then some private user data may be shown publicly

method - get - other types usually have important actions being carried and shouldn’t be lost

 

Don't forget to set the last option with "cache_with Smart Traffic Manager/nginx"

Once everything is set up, you need to give your domain some time (About 30 minutes) to populate the cache. During that time, you may experience some higher resource load, which is totally normal.

Now you can take full advantage of your cache and serve more users, faster!

Tags: cache, domain, domain management, nginx, wordpress
Average rating: 5 (2 Votes)