From: Michael Vogel Date: Tue, 25 Dec 2012 11:51:28 +0000 (+0100) Subject: privacy_image_cache: Minor code beauty changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc77f3683ed83b8d8ec783805eecac962f341c03;p=friendica-addons.git privacy_image_cache: Minor code beauty changes --- diff --git a/privacy_image_cache/privacy_image_cache.php b/privacy_image_cache/privacy_image_cache.php index b9367e49..d98c6b6d 100644 --- a/privacy_image_cache/privacy_image_cache.php +++ b/privacy_image_cache/privacy_image_cache.php @@ -328,13 +328,11 @@ function privacy_image_cache_cron(&$a = null, &$b = null) { 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); - set_config('pi_cache', 'last_delete', $time); clear_cache($a->get_basepath(), $a->get_basepath()."/privacy_image_cache"); -} - - + set_config('pi_cache', 'last_delete', $time); +} /** * @param App $a