Cache problems on my site
-
Hi all, I migrated my site from Oracle to a server in Digital ocean and I activated the plugin Super Page Cache for Cloudflare and it does not work. It’s not the first time I use the plugin so I don’t understand what could be happening. In Cloudways I deactivated varnish on the server to avoid problems but the problem persists.
Error on dynamic page (https://MY SITE): Cache status: DYNAMIC – The resource was not cached by default and your current Cloudflare caching configuration doesn’t instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.
The page I need help with: [log in to see the link]
-
Hi,
from the response header I am seeing, it seems the plugin is working perfectly well: https://i.imgur.com/p3axBU3.jpegNow coming to the cache status being DYNAMIC, I think there might be issue with your page rule. You can check this thread: https://ww.wp.xz.cn/support/topic/not-detected-but-is-installed/
Maybe your problem is similar.
Here are my rules in cloudflare.

-
This reply was modified 3 years, 10 months ago by
juanwp22.
OK. I now double checked and in your case (this wired thing somethings happens in the Cloudflare system no one knows why) – pages are actually being faced and behind served from CF CDN.
But on some pages (like the home page) despite the page being cached and being served from CF CDN – it’s still showing DYNAMIC: https://i.imgur.com/cfsn5xN.jpeg
But if you look at another header value there i.e.
agewhich basically shows the number of seconds your page has been in the CDN cache – you can clearly see that it’s > 0 which means the page is being served from cache.I have seen this happening on some sites which then automatically getting fixed by itself. BTW can you try to force purge everything from the plugin settings page? To see if that helps in any way?
I also don’t see any cookies (i.e.
set-cookieheader) in the reasonse header that can cause this.Now interestingly if I check any other page beside the homepage, it’s showing HIT:
BTW do you have any other caching plugin or the official cloudflare plugin or Cloudflare APO enabled in your site? Cause when using this plugin please make sure you are not using any other page caching system and also not using the default cloudflare plugin and Cloudflare APO.
I only use your plugin and autoptimize for the cache. Is it just a matter of waiting? I already purged the cache from cloudflare before consulting here just in case.
Could it be something in httacces? That site used to use wp-rocket but it was removed and uninstalled some time ago.Hmm… Might be htaccess. Check the rules there. In case of WP Rocket check the
/wp-content/advanced-cache.phpfile and make sure either it does not exist (in case you haven’t enabled fallback cache) or if it does, it is generated by this plugin and not the WP Rocket one.I just entered my server via FTP and I can’t find the cache file you mention, here is the image.
Here is my .htaccess file:
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # MalCare WAF <Files ".user.ini"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> </Files> # END MalCare WAF # BEGIN WP Cloudflare Super Page Cache # The directives (lines) between "BEGIN WP Cloudflare Super Page Cache" and "END WP Cloudflare Super Page Cache" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_expires.c> ExpiresActive on ExpiresByType application/xml "access plus 0 seconds" ExpiresByType text/xsl "access plus 0 seconds" </IfModule> <FilesMatch "\.(xml|xsl)$"> <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" </IfModule> </FilesMatch> <FilesMatch "robots\.txt"> <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" </IfModule> </FilesMatch> <IfModule mod_rewrite.c> RewriteCond %{REQUEST_URI} ^(.*)?/wp-content/wp-cloudflare-super-page-cache/reconnectivehealingpractitioners.com/debug.log(.*)$ RewriteRule ^(.*)$ - [F] </IfModule> <FilesMatch "wp-cron.php"> <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" </IfModule> </FilesMatch> # END WP Cloudflare Super Page CacheI’m no expert but I don’t see anything unusual in the file.
I am also not seeing anything unusual in the htaccess.
Can you also try Enable/Disable Page cache from the plugin settings page in case that helps… This is such a wired thing.Also inside Cloudflare I hope you don’t have any workers set up. Also under cache configuration section of CF dashboard Browser Cache TTL is set to Respect Header, right?
Can you also turn on Smart Tiered Cache inside the Cloudflare dashboard?
CF dashboard Browser Cache TTL is set to Respect Header, right (Yes in Respect Header)
Argo Tiered Cache is disabled, should be enabled?
Yes enable the smart tiered cache.
I have activated Argo, now I will wait to see if I see any changes.
With Argo activated the problem persists. I give up 🙁
Honestly I got no clue of why that is happening. I see no cookies in your page response header, the
cache-controlis also right, but for some reason Cloudflare is not following the directive in cache control header.I also see something called
x-cache: HIT. Do you have any other server level page caching system in place, if so can you try to disable it and check?If that doesn’t help, I think you should contact Cloudflare support asking for more clarification on why the Cloudflare CDN is not following the directive set in the
cache-controlheader.Ok I will contact cloudflare as I don’t have any other cache plugin. Thanks for all.
-
This reply was modified 3 years, 10 months ago by
The topic ‘Cache problems on my site’ is closed to new replies.

