aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-18 22:00:29 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-18 22:00:29 +0100
commitec00fc85e0b141ac4edd13e6af31d01aa1d4fa5d (patch)
treeea051e66e5ce6955c72f1b8c2b44bdb0ca29c972 /phpBB/includes/functions_messenger.php
parentc485312d384b450b057b08b0002d9e3fc3013ca8 (diff)
parentb7deef46ac2f49b310d05d94067607e8f19c0817 (diff)
downloadforums-ec00fc85e0b141ac4edd13e6af31d01aa1d4fa5d.tar
forums-ec00fc85e0b141ac4edd13e6af31d01aa1d4fa5d.tar.gz
forums-ec00fc85e0b141ac4edd13e6af31d01aa1d4fa5d.tar.bz2
forums-ec00fc85e0b141ac4edd13e6af31d01aa1d4fa5d.tar.xz
forums-ec00fc85e0b141ac4edd13e6af31d01aa1d4fa5d.zip
Merge branch '3.2.x'
* 3.2.x: [ticket/13681] Invalidate and reset opcache where necessary
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-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 b306b9aa79..7ed9a772ec 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -873,6 +873,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);
+ }
+
try
{
$this->filesystem->phpbb_chmod($this->cache_file, CHMOD_READ | CHMOD_WRITE);
@@ -922,6 +927,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);
+ }
+
try
{
$this->filesystem->phpbb_chmod($this->cache_file, CHMOD_READ | CHMOD_WRITE);