Use Model\Photo as much as possible
Most important is to use `Photo::delete()` to have backend to remove data.
This commit is contained in:
parent
d549787bc1
commit
8c75c26361
8 changed files with 39 additions and 56 deletions
|
@ -173,7 +173,7 @@ class CronJobs
|
|||
}
|
||||
|
||||
$condition = ['`uid` = 0 AND `resource-id` LIKE "pic:%" AND `created` < NOW() - INTERVAL ? SECOND', $cachetime];
|
||||
DBA::delete('photo', $condition);
|
||||
Photo::delete($condition);
|
||||
}
|
||||
|
||||
// Delete the cached OEmbed entries that are older than three month
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue