Skip to content

Commit cd404fc

Browse files
committed
invalidate opcode cache when updating config file
1 parent dfcf134 commit cd404fc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

includes/classes/Config.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,11 @@ public function save_to_file( $configuration, $network_wide = false ) {
551551
return false;
552552
}
553553

554+
// OPCache invalidate
555+
if ( function_exists( 'opcache_invalidate' ) ) {
556+
opcache_invalidate( $config_file, true );
557+
}
558+
554559
return true;
555560
}
556561

0 commit comments

Comments
 (0)