plugins/SpecialUpdownload.php
changeset 1364 68c17d935750
parent 1360 570abc94bd7f
--- a/plugins/SpecialUpdownload.php	Sat Sep 15 13:18:01 2012 -0400
+++ b/plugins/SpecialUpdownload.php	Sat Sep 15 13:16:59 2012 -0400
@@ -250,7 +250,7 @@
 			$extension = ".{$_GET['fmt']}";
 		
 		$cache_filename = ENANO_ROOT . "/cache/{$filename}-{$row['time_id']}-{$width}x{$height}$extension";
-		if ( file_exists($cache_filename) )
+		if ( file_exists($cache_filename) && !isset($_GET['cache_override']) )
 		{
 			$fname = $cache_filename;
 		}
@@ -281,7 +281,7 @@
 			}
 			if ( $allow_scale )
 			{
-				$result = scale_image($orig_fname, $fname, $width, $height);
+				$result = scale_image($orig_fname, $fname, $width, $height, isset($_GET['cache_override']));
 				if ( !$result )
 					$fname = $orig_fname;
 			}