WP ROCKET cache working faster on second visit

[ad_1]

Hello,

I’m dealing with strange issue, I have an ecommerce website with wp rocket running. Like a week ago I noticed that cached pages were loading much slower, like it takes some time to get response from server around 1-2 seconds, and before that it was instant. I was thinking maybe it’s an issue with cache preloading? I tried to preload all the pages again, not sure if it worked but WP Rocket didn’t complain so I thought everything is fine, but obviously it works slower for some reason, I didn’t do any code modifications during that time. It used to be like, if you visit any page on a website for the first time it would load instantly and also all other times, but now it seems that it only loads instantly after I have visited that page, which to me kinda feels like I ‘warmed up’ or preloaded cache for that page if that makes sense, and that’s why it loads from the second and other times faster, but firs time is always much slower, that you visually feel.

Do you have any suggestions what could I try to make those pages loading faster even for the first time, could it be an issue WP Rocket not being able to preload my pages anymore?

Thank you in advance

[ad_2]
2 Comments
  1. Check if the page is cached in WPRocket in /wp-content/cache/wp-rocket/your_domain/. Maybe you’ve run out of disk space?

    What you’re referring to regarding “faster the second time” is client-side caching, rather than server-side (which is what WP Rocket is supposed to do). If you do a “hard refresh” (ctrl+F5), that will fetch from the server – what happens when you do that?

    Have you also run your site through [gtmetrix.com](https://gtmetrix.com)? That might highlight if you have a slow server/TTFB-issue. Do it a few times to ensure WPRocket is serving a cached copy.

  2. Do you have redis doing object caching as well? Is it on the same box as the http server? Does redis randomly eat up huge amounts of RAM?

    Edit – If the answer to all three is ‘yes’, you’ll soon discover that redis isn’t actually randomly eating up massive amounts of RAM. There’s actually nothing random about it all all!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer