mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
Fix getAllKeys() method for memcache instances
This commit is contained in:
parent
41e2031e6b
commit
e2e109b8c1
5 changed files with 108 additions and 17 deletions
|
@ -138,7 +138,7 @@ class DatabaseLock extends Lock
|
|||
if (empty($prefix)) {
|
||||
$where = ['`expires` >= ?', DateTimeFormat::utcNow()];
|
||||
} else {
|
||||
$where = ['`expires` >= ? AND `k` LIKE CONCAT(?, \'%\')', DateTimeFormat::utcNow(), $prefix];
|
||||
$where = ['`expires` >= ? AND `name` LIKE CONCAT(?, \'%\')', DateTimeFormat::utcNow(), $prefix];
|
||||
}
|
||||
|
||||
$stmt = $this->dba->select('locks', ['name'], $where);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue