diff options
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)]); |