OPcache is NOT cleared after WordPress Update
-
Current code for this function is:
/** * Check if we need to flush OPcache after an update */ public function flush_opcache_after_wp_update() { if ( get_site_option( 'flush-opcache-upgrade' ) === 1 ) { $this->flush_opcache_reset(); } }
It should instead be:
/** * Check if we need to flush OPcache after an update */ public function flush_opcache_after_wp_update() { if ( get_site_option( 'flush-opcache-upgrade' ) === '1' ) { $this->flush_opcache_reset(); } }
Notice the ‘ around the 1.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘OPcache is NOT cleared after WordPress Update’ is closed to new replies.