summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.php b/init.php
index 2cafbd0..6a65cc5 100644
--- a/init.php
+++ b/init.php
@@ -147,10 +147,10 @@ class Api_Resize_Media extends Plugin {
if ($this->cache->exists($local_filename_flag)) {
Debug::log("[api_resize_media] $local_filename_flag exists, looks like we failed on this URL before; skipping.", Debug::LOG_VERBOSE);
return;
+ } else {
+ $this->cache->put($local_filename_flag, "");
}
- $this->cache->put($local_filename_flag, "");
-
if (!$this->cache->exists($local_filename)) {
$data = UrlHelper::fetch(["url" => $url, "max_size" => Config::get(Config::MAX_CACHE_FILE_SIZE)]);