mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-10 11:46:32 +02:00
[feature/controller] Remove dumped container when cache is purged
PHPBB3-10864
This commit is contained in:
1
phpBB/includes/cache/driver/file.php
vendored
1
phpBB/includes/cache/driver/file.php
vendored
@ -215,6 +215,7 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base
|
|||||||
while (($entry = readdir($dir)) !== false)
|
while (($entry = readdir($dir)) !== false)
|
||||||
{
|
{
|
||||||
if (strpos($entry, 'container_') !== 0 &&
|
if (strpos($entry, 'container_') !== 0 &&
|
||||||
|
strpos($entry, 'url_matcher') !== 0 &&
|
||||||
strpos($entry, 'sql_') !== 0 &&
|
strpos($entry, 'sql_') !== 0 &&
|
||||||
strpos($entry, 'data_') !== 0 &&
|
strpos($entry, 'data_') !== 0 &&
|
||||||
strpos($entry, 'ctpl_') !== 0 &&
|
strpos($entry, 'ctpl_') !== 0 &&
|
||||||
|
1
phpBB/includes/cache/driver/memory.php
vendored
1
phpBB/includes/cache/driver/memory.php
vendored
@ -163,6 +163,7 @@ abstract class phpbb_cache_driver_memory extends phpbb_cache_driver_base
|
|||||||
while (($entry = readdir($dir)) !== false)
|
while (($entry = readdir($dir)) !== false)
|
||||||
{
|
{
|
||||||
if (strpos($entry, 'container_') !== 0 &&
|
if (strpos($entry, 'container_') !== 0 &&
|
||||||
|
strpos($entry, 'url_matcher') !== 0 &&
|
||||||
strpos($entry, 'sql_') !== 0 &&
|
strpos($entry, 'sql_') !== 0 &&
|
||||||
strpos($entry, 'data_') !== 0 &&
|
strpos($entry, 'data_') !== 0 &&
|
||||||
strpos($entry, 'ctpl_') !== 0 &&
|
strpos($entry, 'ctpl_') !== 0 &&
|
||||||
|
Reference in New Issue
Block a user