[wp-trac] [WordPress Trac] #49176: Wp-admin area / pages are cached WordPress Version 5.3.2

WordPress Trac noreply at wordpress.org
Fri Jan 17 02:12:16 UTC 2020


#49176: Wp-admin area / pages are cached WordPress Version 5.3.2
----------------------------+----------------------
 Reporter:  techjockey      |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+----------------------

Comment (by janvitos):

 Hi @techjockey,

 I had the exact same issue that you described and found out today that
 CloudFlare was the culprit.

 CloudFlare always cached PHP when using a Cache Everything Page Rule, but
 in the past, it had no effect on the WordPress admin pages as they always
 behaved properly like they weren't cached at all.

 But it seems like CloudFlare changed something recently, and now the
 cached PHP pages were causing all kinds of weird issues with WordPress,
 like new posts overriding older posts, save / update buttons not saving or
 updating, new posts not appearing in the post list until you refreshed the
 page, etc.

 I can tell you this problem was serious enough that I lost some articles
 and had to get my writers to rewrite entire articles because they had just
 vanished. I told my writers to start using Chrome with DevTools open and
 Disable Cache checked under Network, which temporarily solved the issue,
 but was not a long term solution.

 The permanent solution for me was to add the following CloudFlare Page
 Rule:

 {{{
 www.website.com/*.php*
 }}}

 This prevents CloudFlare from caching all PHP files from your website,
 with and without query strings, and it should fix the issue for good. Make
 sure you clear the CloudFlare cache and the WordPress cache afterwards,
 and I would even clear your browser's cached images and files just to make
 sure.

 To moderators: I know this is out of scope, but I saw many people around
 the web experiencing this same issue, so you could leave my comment here
 so people looking for answers to this problem might find the answer
 they're looking for.

 I will also be posting this on the CloudFlare community forum.

 Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49176#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list