Skip to content

Commit

Permalink
opcache invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Apr 23, 2019
1 parent 2635838 commit ede7190
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,12 @@ private function writeConfigFile(Registry $config)
throw new \RuntimeException(Text::_('COM_CONFIG_ERROR_WRITE_FAILED'));
}

// Invalidates the cached configuration file when opcache is in effect
if (function_exists('opcache_invalidate'))
{
opcache_invalidate($file);
}

// Attempt to make the file unwriteable if using FTP.
if (!$ftp['enabled'] && Path::isOwner($file) && !Path::setPermissions($file, '0444'))
{
Expand Down

0 comments on commit ede7190

Please sign in to comment.