Performance with huge Size of stats_cache
-
I am using stats_get_csv function of Jetpack to retrieve page views for individual posts and displaying them on my blog. I observed that this function is in turn storing the data in wp_options table in a single cell named stats_cache and the data is cached for 300 seconds as per the function.
That means each time I call stats_get_csv, it fetches the stats_cache, check if data has expired for that query, query wp api and returns the result.
Now I have thousands of posts on my blog with huge traffic. And post count is increasing by hundreds every day. That means stats_get_csv is called by thousands of posts each day which would result in huge size of stats_cache. In this case, on each page load, it will be calling that huge stats_cache.
Will this slow down my website? How big can this stats_cache be and will it be a performance issue when this stats_cache will be caching thousands of record in a single database element?
- The topic ‘Performance with huge Size of stats_cache’ is closed to new replies.