mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/15726] Implement selective purge in APCu cache driver
Fix whitespace PHPBB3-15726
This commit is contained in:
6
phpBB/phpbb/cache/driver/apcu.php
vendored
6
phpBB/phpbb/cache/driver/apcu.php
vendored
@@ -25,9 +25,9 @@ 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 clear 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 . '#'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user