diff --git a/administrator/components/com_config/model/application.php b/administrator/components/com_config/model/application.php index 4abbbfaebc07c..bfac3e1c30eb3 100644 --- a/administrator/components/com_config/model/application.php +++ b/administrator/components/com_config/model/application.php @@ -459,6 +459,12 @@ private function writeConfigFile(Registry $config) throw new RuntimeException(JText::_('COM_CONFIG_ERROR_WRITE_FAILED')); } + // Invalidates the cached configuration file + if (function_exists('opcache_invalidate')) + { + opcache_invalidate($file); + } + // Attempt to make the file unwriteable if using FTP. if (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0444')) {