On this line it sets “s-max-age” header.
https://plugins.trac.www.ads-software.com/browser/wp-cloudflare-cache/trunk/lib/class-wp-cloudflare-cache.php#L236
But its called s-maxage, so currently it has no effect.
https://developers.cloudflare.com/cache/about/cache-control/#expiration
The way you prevent cf prevent cache for logged in user is nonsense:
if (is_admin() || is_user_logged_in() || is_feed()) {
header(“Cache-Control: no-cache, must-revalidate, max-age=0”);
}
That code will run on our hosting server, our hosting server know user logged in or not checking it via is_user_logged_in()
But how CF know this user already logged in or not before hitting our server?
If CF know hosting server responded with “Cache-Control: no-cache, must-revalidate, max-age=0”. Then it means CF not getting the page from the cache, but from our server.
It means cacheeverything need to hit our server first to know whether this user is logged in or not.
Logged in user doesnt just browse ‘wp-admin’ logged in user can also browse other page like homepage. So how CF know user browsing homepage is logged user or not without requesting from our server first?
]]>If an Admin goes to a page, the Dashboard top menu is shown
Then, if a non-logged in user goes to same page, the Admin name is shown in Top Menu bar.
Need an option to not show Dashboard top menu except for Admin area.
Suggest looking at the work in WP SuperSonic plugin.
]]>i use fastcgi cache in my site. This plugin is compatible with Nginx Helper plugin? thank you
]]>The plugin settings page and Repo page link to https://www.mozedia.com/cloudflare-cache-everything-for-wordpress/
But that link is broken. Do you have an English setup guide?
]]>Hello,
thank you for your plugin but it doesn’t work for me.
If I edit a post and save it and i leave it. My login is still visible in the default wordpress comment system. So i have to go to cloudflare and make a custom purge for that post, wait a few seconds and go to incognito mode and then I’m actually logged out and my data is not visible to other users.
I can give you an access to my site and you will see for yourself.
]]>