forked from friendica/friendica-addons
privacy_image_cache: Minor code beauty changes
This commit is contained in:
parent
ec95e5a2da
commit
dc77f3683e
1 changed files with 2 additions and 4 deletions
|
@ -328,14 +328,12 @@ function privacy_image_cache_cron(&$a = null, &$b = null) {
|
||||||
|
|
||||||
logger("Purging old Cache of the Privacy Image Cache", LOGGER_DEBUG);
|
logger("Purging old Cache of the Privacy Image Cache", LOGGER_DEBUG);
|
||||||
q('DELETE FROM `photo` WHERE `uid` = 0 AND `resource-id` LIKE "pic:%%" AND `created` < NOW() - INTERVAL %d SECOND', $cachetime);
|
q('DELETE FROM `photo` WHERE `uid` = 0 AND `resource-id` LIKE "pic:%%" AND `created` < NOW() - INTERVAL %d SECOND', $cachetime);
|
||||||
set_config('pi_cache', 'last_delete', $time);
|
|
||||||
|
|
||||||
clear_cache($a->get_basepath(), $a->get_basepath()."/privacy_image_cache");
|
clear_cache($a->get_basepath(), $a->get_basepath()."/privacy_image_cache");
|
||||||
|
|
||||||
|
set_config('pi_cache', 'last_delete', $time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param App $a
|
* @param App $a
|
||||||
* @param null|object $o
|
* @param null|object $o
|
||||||
|
|
Loading…
Reference in a new issue