summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2007-04-11 23:00:26 (GMT)
committer Earl Miles2007-04-11 23:00:26 (GMT)
commit75eca2f072584c767cbf45c4c256594bd0476962 (patch)
treedb932148df9b3c4e5b32aa6b737815411e97f310
parentad6c5996c676daf27854201f1592eb54e191019c (diff)
#130381: (mgull) Clear the page cache after a view is saved or deleted so that anonymous users will see changes.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--views.module2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 27ac8b5..6a794ac 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -38,6 +38,7 @@ Views --dev
o #128301: (dww) Fix .install file to uninstall tables even if using postgres.
o #130139: (simplymenotu) change changelog to top-down format.
o #130196: (the greenman) Views filters improperly ignored table aliasing.
+ o #130381: (mgull) Clear the page cache after a view is saved or deleted so that anonymous users will see changes.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
diff --git a/views.module b/views.module
index abf20ae..3d30b74 100644
--- a/views.module
+++ b/views.module
@@ -813,6 +813,7 @@ function _views_delete_view($view) {
db_query("DELETE FROM {view_tablefield} where vid=%d", $view->vid);
cache_clear_all('views_query:' . $view->name, 'cache_views');
+ cache_clear_all(); // In Drupal 5.0 and later this clears the page cache only.
}
/**
@@ -987,6 +988,7 @@ function _views_save_view($view) {
db_query("INSERT INTO {view_exposed_filter} (vid, field, label, optional, is_default, single, operator, position) VALUES (%d, '%s', '%s', %d, %d, %d, %d, %d)", $view->vid, $arg['field'], $arg['label'], $arg['optional'], $arg['is_default'], $arg['single'], $arg['operator'], $i);
}
cache_clear_all('views_urls', 'cache_views');
+ cache_clear_all(); // clear the page cache as well.
}
// ---------------------------------------------------------------------------