From dc77f3683ed83b8d8ec783805eecac962f341c03 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 25 Dec 2012 12:51:28 +0100 Subject: [PATCH] privacy_image_cache: Minor code beauty changes --- privacy_image_cache/privacy_image_cache.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5