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

Correcting code formatting and whitespace

PHPBB3-15726
This commit is contained in:
v12mike 2018-07-25 19:36:25 +01:00 committed by Marc Alexander
parent 7d4d9770cf
commit bf9af92220
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 5 additions and 4 deletions

View file

@ -25,9 +25,10 @@ class apcu extends \phpbb\cache\driver\memory
*/ */
function purge() function purge()
{ {
/* use an iterator to selectively clear our cache entries without /*
disturbing any other cache users Use an iterator to selectively clear our cache entries without disturbing
(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 . '#'));
parent::purge(); parent::purge();