aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-18 21:55:11 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-18 21:55:11 +0100
commit6e4ab6509b38f03daa2fb2af30df61423b126bdf (patch)
treeac8c696fc7e26ae2d98b507c62abb4bfcd630b2d /phpBB/includes
parentfc66f00236230d41362dd63286641e8faffd0f99 (diff)
parentbd12427fd447dd4a3be89e8aa1656d0cbe7cc04a (diff)
downloadforums-6e4ab6509b38f03daa2fb2af30df61423b126bdf.tar
forums-6e4ab6509b38f03daa2fb2af30df61423b126bdf.tar.gz
forums-6e4ab6509b38f03daa2fb2af30df61423b126bdf.tar.bz2
forums-6e4ab6509b38f03daa2fb2af30df61423b126bdf.tar.xz
forums-6e4ab6509b38f03daa2fb2af30df61423b126bdf.zip
Merge pull request #4185 from marc1706/ticket/13681
[ticket/13681] Invalidate and reset opcache where necessary * marc1706/ticket/13681: [ticket/13681] Invalidate and reset opcache where necessary
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_messenger.php10
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();