diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-02-18 19:03:56 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-02-18 19:03:56 +0100 |
commit | bd12427fd447dd4a3be89e8aa1656d0cbe7cc04a (patch) | |
tree | 576e6bf9cf234fae4e545add0a0efaa60f860716 /phpBB/phpbb/cache/driver | |
parent | 17e21d5140ccb99363a32bd64c32af6012c1ce97 (diff) | |
download | forums-bd12427fd447dd4a3be89e8aa1656d0cbe7cc04a.tar forums-bd12427fd447dd4a3be89e8aa1656d0cbe7cc04a.tar.gz forums-bd12427fd447dd4a3be89e8aa1656d0cbe7cc04a.tar.bz2 forums-bd12427fd447dd4a3be89e8aa1656d0cbe7cc04a.tar.xz forums-bd12427fd447dd4a3be89e8aa1656d0cbe7cc04a.zip |
[ticket/13681] Invalidate and reset opcache where necessary
PHPBB3-13681
Diffstat (limited to 'phpBB/phpbb/cache/driver')
-rw-r--r-- | phpBB/phpbb/cache/driver/base.php | 5 | ||||
-rw-r--r-- | phpBB/phpbb/cache/driver/file.php | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/phpbb/cache/driver/base.php b/phpBB/phpbb/cache/driver/base.php index 4c20ad916d..53c50eeda3 100644 --- a/phpBB/phpbb/cache/driver/base.php +++ b/phpBB/phpbb/cache/driver/base.php @@ -61,6 +61,11 @@ abstract class base implements \phpbb\cache\driver\driver_interface unset($this->sql_rowset); unset($this->sql_row_pointer); + if (function_exists('opcache_reset')) + { + @opcache_reset(); + } + $this->vars = array(); $this->sql_rowset = array(); $this->sql_row_pointer = array(); diff --git a/phpBB/phpbb/cache/driver/file.php b/phpBB/phpbb/cache/driver/file.php index 9a7c4aec7f..fae4614039 100644 --- a/phpBB/phpbb/cache/driver/file.php +++ b/phpBB/phpbb/cache/driver/file.php @@ -568,6 +568,11 @@ class file extends \phpbb\cache\driver\base fclose($handle); + if (function_exists('opcache_invalidate')) + { + @opcache_invalidate($file); + } + if (!function_exists('phpbb_chmod')) { global $phpbb_root_path; |