summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-06-28 22:48:18 +0000
committerDries Buytaert2003-06-28 22:48:18 +0000
commit4d29898a9638a30451e6fb53c1429bfa4ed43ee7 (patch)
tree1ae9622fba80d7abe50ddc8d8d120c64eca72684
parent646bb31a42418f46f285824618f63904a06d2c96 (diff)
- Bugfix: flush the cache after updating the new feeds (or after having
added or removed news items). Fixes bug #2088.
-rw-r--r--modules/aggregator.module1
-rw-r--r--modules/aggregator/aggregator.module1
-rw-r--r--modules/import.module1
3 files changed, 3 insertions, 0 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index 1d384e7..1926605 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -394,6 +394,7 @@ function import_refresh($feed) {
db_query("DELETE FROM item WHERE ". implode(" OR ", array_slice($items, 0, - 50)));
}
+ cache_clear_all();
}
else {
return t("failed to parse RSS feed '%site': no data.", array("%site" => $feed["tite"]));
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 1d384e7..1926605 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -394,6 +394,7 @@ function import_refresh($feed) {
db_query("DELETE FROM item WHERE ". implode(" OR ", array_slice($items, 0, - 50)));
}
+ cache_clear_all();
}
else {
return t("failed to parse RSS feed '%site': no data.", array("%site" => $feed["tite"]));
diff --git a/modules/import.module b/modules/import.module
index 1d384e7..1926605 100644
--- a/modules/import.module
+++ b/modules/import.module
@@ -394,6 +394,7 @@ function import_refresh($feed) {
db_query("DELETE FROM item WHERE ". implode(" OR ", array_slice($items, 0, - 50)));
}
+ cache_clear_all();
}
else {
return t("failed to parse RSS feed '%site': no data.", array("%site" => $feed["tite"]));