[ticket/15726] Implement selective purge in APCu cache driver

Edit comment

PHPBB3-15726
This commit is contained in:
v12mike 2018-07-26 17:24:42 +02:00 committed by Marc Alexander
parent 7f1f64b1dc
commit 33268e5a72
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -26,7 +26,7 @@ class apcu extends \phpbb\cache\driver\memory
function purge() function purge()
{ {
/* /*
* Use an iterator to selectively clear our cache entries without disturbing * Use an iterator to selectively delete our cache entries without disturbing
* any other cache users (e.g. other phpBB boards hosted on this server) * any other cache users (e.g. other phpBB boards hosted on this server)
*/ */
apcu_delete(new \APCUIterator('#^' . $this->key_prefix . '#')); apcu_delete(new \APCUIterator('#^' . $this->key_prefix . '#'));