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/includes | |
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/includes')
-rw-r--r-- | phpBB/includes/functions_messenger.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index ae393739b9..aaecd9de0c 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -859,6 +859,11 @@ class queue fwrite($fp, "<?php\nif (!defined('IN_PHPBB')) exit;\n\$this->queue_data = unserialize(" . var_export(serialize($this->queue_data), true) . ");\n\n?>"); fclose($fp); + if (function_exists('opcache_invalidate')) + { + @opcache_invalidate($this->cache_file); + } + phpbb_chmod($this->cache_file, CHMOD_READ | CHMOD_WRITE); } } @@ -901,6 +906,11 @@ class queue fwrite($fp, "<?php\nif (!defined('IN_PHPBB')) exit;\n\$this->queue_data = unserialize(" . var_export(serialize($this->data), true) . ");\n\n?>"); fclose($fp); + if (function_exists('opcache_invalidate')) + { + @opcache_invalidate($this->cache_file); + } + phpbb_chmod($this->cache_file, CHMOD_READ | CHMOD_WRITE); $this->data = array(); |