© 2020 Ezoic Inc.
Caching means that content is going to be stored somewhere so that it’s easily accessible and doesn’t have to make an external call back to the origin. This reduces the time for a visitor to access data on a website which in turn, improves your site speed.
The Caching app can be found in your Dashboard under the "Speed" tab:
Go to the app in your Dashboard and toggle the off/on switch to “on”:
* Please note that AMP pages do not get cached by our caching app
Our caching app will automatically respect whatever maximum age cache headers you have set up on your origin server end. However, if there is no maximum age specified in the cache headers, we will set a default 24 hour caching age. This means that your pages will be stored for 24 hours before it updates again.
You can always change this default caching age by clicking “Update Cache Settings Values” and setting the number of seconds under Default Cache Age (we have a minimum of 36000 seconds = 1 hour that must be set) then click “Update Domain Setting Values:
For Entire Site:
All you need to do to clear Ezoic’s cache for your entire site is click “Clear Cache” within the app:
For Single URL:
You can clear the Ezoic cache for single URLs by entering in the URL here and clicking “Clear For URL”:
You can add an exclusion rule within the app to exclude any pages, directories, URL params, or cookies from being cached by our system. All you need to do is:
1. Click “Add New Exclude Rule”:
2. Select your Rule Target:
Enter in the page, directory, URL param, or cookie to be excluded:
Be sure to click “Save Domain Setting Rule” when you are done!
You can use both Cloudflare caching and the Ezoic Caching app at the same time, as this will just give your site two layers of caching. You will just need to make sure your Cloudflare settings are set to "standard" or "aggressive" so it can be compatible with Ezoic's cache.
In terms of functionality, both caching systems work the same. However, Ezoic’s Caching App will use our CDN network while Cloudflare caching uses their own CDN network.
You can monitor your caching stats within Big Data Analytics by going to your Dashboard > Analytics tab > Site Speed side tab > Caching > Ezoic Caching.
If you are seeing multiple cache “misses” this could mean that...
1. You have caching rules set up on your end that could be preventing our cache to hit. Here are all rules that will prevent our cache from hitting -
You can simply change these rules on your server end or we can override any rules set up within our caching app sot that our cache will start hitting. Just reach out to your onboarding specialist or our support team and we can assist you with this!
*Please note that if you have a Vary by Cookie set, this may be important to the functionality of your site. Therefore, if we override this rule, our caching will ignore any cookies that are set for the use of changing content.
2. You have excluded pages from Ezoic testing the the Excluded Pages App (Dashboard > Content tab):
You have excluded pages from caching within the caching app already:
4. If your site is integrated with Ezoic via the Cloudflare app, check that your Cloudflare caching does not conflict with Ezoic caching. You'd want to remove any page level caching at Cloudflare and set Cloudflare caching to "standard".
5. If your site is integrated with Ezoic via the Wordpress plugin you may have an incompatible caching plugin that is caching in front of Ezoic and interfering with our system.
Examples of typically compatible plugins:
- W3 Total Cache
- WP Super Cache
Examples of typically incompatible caching plugins:
- Swift Performance Cache
- LiteSpeed Caching
- WP Fastest Cache
- AutoOptimise/AutOptimise cache
- SG Optimizer
1. Click “Add Caching Rule”:
Select the Rule Target type:
Set the “Max Cache Time” (how often we should look for changes to this page) - the options range from 1 hour to 2 weeks:
Once completed, be sure to click “Add Caching Rule” so rule can be saved!
If you want to clear the Layout Tester cache of a specific page, a quick way to do this would be to...
1. Create a rule under Layout Tester Caching (as shown in the last section) or go to the already created page rule.
3. Click the refresh symbol to clear the cache of the page:
If you want to clear the Layout Tester cache for your entire site, please reach out to your Account Manager for assistance with this. Clearing the entire site cache while using Layout Tester can result in really slow site speed at first as the system will have to restart storing versions again.