]> git.mxchange.org Git - friendica-addons.git/commitdiff
privacy_image_cache: Minor code beauty changes
authorMichael Vogel <icarus@dabo.de>
Tue, 25 Dec 2012 11:51:28 +0000 (12:51 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 25 Dec 2012 11:51:28 +0000 (12:51 +0100)
privacy_image_cache/privacy_image_cache.php

index b9367e49b37244fbbd55ab4a79b5406aa69aa6a8..d98c6b6d92aebb0522b8c66194438661606d5c73 100644 (file)
@@ -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