Fixed bug to invalidate cache when saving uncacheable queries.
authorEarl Miles
Wed, 14 Dec 2005 21:10:00 +0000 (21:10 +0000)
committerEarl Miles
Wed, 14 Dec 2005 21:10:00 +0000 (21:10 +0000)
views.module

index 14bc2fe..a00761d 100644 (file)
@@ -1658,6 +1658,10 @@ function _views_save_view($view) {
     $view->sql = $info['sql'];
     $view->countsql = $info['countsql'];
   }
+  else {
+    $view->sql = NULL;
+    $view->countsql = NULL;
+  }
 
   // collapse arrays
   if (is_array($view->filter_nodetypes))