1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 22:45:02 +02:00

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

Fix whitespace

PHPBB3-15726
This commit is contained in:
v12mike 2018-07-16 06:36:38 +02:00 committed by Marc Alexander
parent 02234783c6
commit 63a3033f15
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

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