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

WordPress Trac noreply at wordpress.org
Sun Jan 12 08:58:25 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:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by fierevere):

 You still have to use support forums instead of trac.

 By the way: define('WP_CACHE',false); - you should never use this. And it
 will not help in case /wp-admin/ pages are cached. Instead it makes your
 site much slower.
 Your hoster might use LiteSpeed and/or mod_pagecache (or its alternative
 for respective webserver), often it is the issue of any page caching.

 You should double-check your .htaccess file or other webserver rules, so
 they dont meddle with
 {{{
 Cache-control
 }}}
 header

 you can try adding to your active theme functions.php this code:


 {{{
 function add_pragma_no_cache_header( $headers ) {
         $headers['Pragma'] = 'no-cache';
         return $headers;
 }
 add_filter( 'nocache_headers', 'add_pragma_no_cache_header' );

 }}}

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


More information about the wp-trac mailing list