]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/DatabaseCacheDriver.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / Core / Cache / DatabaseCacheDriver.php
index 9966457467cfbb6689fbb61cd3fd8a04036b5b2b..d90c6e4f18180f6777a316dbe1cf2d70249ce85f 100644 (file)
@@ -21,18 +21,18 @@ class DatabaseCacheDriver extends AbstractCacheDriver implements ICacheDriver
                if (empty($prefix)) {
                        $where = ['`expires` >= ?', DateTimeFormat::utcNow()];
                } else {
-                       $where = ['`expires` >= ? AND k LIKE CONCAT(?, \'%\')', DateTimeFormat::utcNow(), $prefix];
+                       $where = ['`expires` >= ? AND `k` LIKE CONCAT(?, \'%\')', DateTimeFormat::utcNow(), $prefix];
                }
 
                $stmt = DBA::select('cache', ['k'], $where);
 
-               $list = [];
+               $keys = [];
                while ($key = DBA::fetch($stmt)) {
-                       array_push($list, $key['k']);
+                       array_push($keys, $key['k']);
                }
                DBA::close($stmt);
 
-               return $list;
+               return $keys;
        }
 
        /**