* @brief Clear cache entries
*
* @param App $a
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function clearCache(App $a)
{
}
$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
* @brief Repair missing values in Diaspora contacts
*
* @param App $a
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
private static function repairDiaspora(App $a)
{