Replace references to NOW() in SQL queries with a DateTimeFormat generated parameter
This commit is contained in:
parent
80da47921e
commit
423892b814
2 changed files with 4 additions and 5 deletions
|
@ -146,7 +146,7 @@ class DatabaseCache extends AbstractCache implements ICanCache
|
|||
{
|
||||
try {
|
||||
if ($outdated) {
|
||||
return $this->dba->delete('cache', ['`expires` < NOW()']);
|
||||
return $this->dba->delete('cache', ['`expires` < ?', DateTimeFormat::utcNow()]);
|
||||
} else {
|
||||
return $this->dba->delete('cache', ['`k` IS NOT NULL ']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue