Index: modules/filter/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.246
diff -u -p -r1.246 filter.module
--- modules/filter/filter.module	30 Mar 2009 03:15:40 -0000	1.246
+++ modules/filter/filter.module	8 Apr 2009 20:57:26 -0000
@@ -435,9 +435,6 @@ function check_markup($text, $format = F
       return $cached->data;
     }
 
-    // See if caching is allowed for this format.
-    $cache = filter_format_allowcache($format);
-
     // Convert all Windows and Mac newlines to a single newline,
     // so filters only need to deal with one possibility.
     $text = str_replace(array("\r\n", "\r"), "\n", $text);
@@ -456,7 +453,7 @@ function check_markup($text, $format = F
     }
 
     // Store in cache with a minimum expiration time of 1 day.
-    if ($cache) {
+    if (filter_format_allowcache($format)) {
       cache_set($cache_id, $text, 'cache_filter', REQUEST_TIME + (60 * 60 * 24));
     }
   }
