Home » How To Improve My Cache Hit Rate With Ezoic

How To Improve My Cache Hit Rate With Ezoic

by Paul
Free SEO Guide eBook

Cache hit rate is an important metric in website performance and user experience. A cache hit occurs when a user’s request for content is fulfilled by the closest edge server, while a cache miss occurs when the request cannot be fulfilled by the closest edge server and must travel all the way to the origin server. A high cache hit rate can result in faster website speeds and better Core Web Vitals, but a high number of cache misses can have the opposite effect. To improve the cache hit rate, you can view the URLs that are not getting cached using Big Data Analytics, adjust settings such as increasing the cache age or overriding cache control headers, and use Ezoic’s WordPress plugin to automatically clear the cache when you make changes to your website. In this article, we will explore the steps you can take to improve your cache hit rate and optimize your website performance.

Report On Hits and Misses – BDA

The first step to improving your cache hit rate is to view the URLs that are not getting cached. You can do this by going to Big Data Analytics, scrolling to Site Speed > Caching > Ezoic Caching, and clicking on ‘Cache Miss’. This will load a report of all the pages that are not being cached, along with reasons why Ezoic is not caching them. Alternatively, you can use the Debug Cache tool in the Caching section of the Leap app to debug any URL from your site. Based on your results, you can adjust the following settings to improve your cache hit rate.

Adjust Cache Age

The first setting you can adjust is the cache age. The cache age determines how long your pages are stored in the CDN before they are updated. By default, the cache age is set to 30 days, but you can increase it to store your pages for longer before they are updated. However, if your content is regularly updated, increasing the cache age may prevent those accessing a cached version of the pages from seeing an up-to-date version. To increase the cache age, you can navigate to the ‘Setting Values’ in the Caching section of the Leap app and edit the ‘Default Cache Age’ to the desired number of seconds.

Adjust Cache-Control Headers

The second setting you can adjust is the cache control headers. Our caching automatically respects any caching rules already set up for your site, but sometimes the cache control headers set up at your server can prevent the cache from hitting. To override these headers, you can navigate to the ‘Setting Values’ in the Caching section of the Leap app and edit the ‘Override Cache Control Headers’ from ‘OFF’ to ‘ON’. However, if you have a Vary by Cookie set, you may want to consider leaving the headers in place to maintain the functionality of your site.

Use The Ezoic Plugin To Clear Cache

Finally, you can use Ezoic’s WordPress plugin to automatically clear the cache when you make changes to your website. This will ensure that users always see the up-to-date version of your site, even if you have increased the cache age. The plugin can be found at https://support.ezoic.com/kb/article/how-can-i-set-up-the-ezoic-wordpress-plugin-for-cdn-management.

Conclusion

In conclusion, improving your cache hit rate can help you optimize your website performance and improve user experience. By viewing the URLs that are not getting cached, adjusting settings such as the cache age and cache control headers, and using Ezoic’s WordPress plugin, you can improve your cache hit rate and ensure that your site is fast and responsive for all users.

Related Posts

Leave a Comment