aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver/apcu.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/cache/driver/apcu.php')
-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..c96cf0de57 100644
--- 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 delete 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();
}