aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-11-14 23:34:28 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-11-14 23:34:28 +0100
commitd982d432eb3bef8040b04d0514bc80c346faf618 (patch)
treea7b614263bc68e4f26fb0399bada5de5ff954eb1 /phpBB/includes/cache
parent9c28470ad7b45c10ce3a32065650e4b17f9f27ea (diff)
downloadforums-d982d432eb3bef8040b04d0514bc80c346faf618.tar
forums-d982d432eb3bef8040b04d0514bc80c346faf618.tar.gz
forums-d982d432eb3bef8040b04d0514bc80c346faf618.tar.bz2
forums-d982d432eb3bef8040b04d0514bc80c346faf618.tar.xz
forums-d982d432eb3bef8040b04d0514bc80c346faf618.zip
[ticket/11199] Cache purge does not remove dumped container
PHPBB3-11199
Diffstat (limited to 'phpBB/includes/cache')
-rw-r--r--phpBB/includes/cache/driver/file.php2
-rw-r--r--phpBB/includes/cache/driver/memory.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/cache/driver/file.php b/phpBB/includes/cache/driver/file.php
index b20c0064ea..699402af84 100644
--- a/phpBB/includes/cache/driver/file.php
+++ b/phpBB/includes/cache/driver/file.php
@@ -214,7 +214,7 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base
while (($entry = readdir($dir)) !== false)
{
- if (strpos($entry, 'container') !== 0 &&
+ if (strpos($entry, 'container') === false &&
strpos($entry, 'sql_') !== 0 &&
strpos($entry, 'data_') !== 0 &&
strpos($entry, 'ctpl_') !== 0 &&
diff --git a/phpBB/includes/cache/driver/memory.php b/phpBB/includes/cache/driver/memory.php
index 98ac02b161..8b4ecb6cbf 100644
--- a/phpBB/includes/cache/driver/memory.php
+++ b/phpBB/includes/cache/driver/memory.php
@@ -162,7 +162,7 @@ abstract class phpbb_cache_driver_memory extends phpbb_cache_driver_base
while (($entry = readdir($dir)) !== false)
{
- if (strpos($entry, 'container') !== 0 &&
+ if (strpos($entry, 'container') === false &&
strpos($entry, 'sql_') !== 0 &&
strpos($entry, 'data_') !== 0 &&
strpos($entry, 'ctpl_') !== 0 &&