aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/cache/driver')
-rwxr-xr-x[-rw-r--r--]phpBB/phpbb/cache/driver/apcu.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/phpbb/cache/driver/apcu.php b/phpBB/phpbb/cache/driver/apcu.php
index 40192e4026..6a65e7155a 100644..100755
--- a/phpBB/phpbb/cache/driver/apcu.php
+++ b/phpBB/phpbb/cache/driver/apcu.php
@@ -25,7 +25,11 @@ class apcu extends \phpbb\cache\driver\memory
*/
function purge()
{
- apcu_clear_cache();
+ /* use an iterator to selectively clear our cache entries without
+ disturbing any other cache users
+ (e.g. other phpBB boards hosted on this server) */
+ apcu_delete(new \APCUIterator('#^' . $this->key_prefix . '#'));
+
parent::purge();
}