Commit 4d29898a authored by Dries's avatar Dries
Browse files

- Bugfix: flush the cache after updating the new feeds (or after having
  added or removed news items).  Fixes bug #2088.
parent 646bb31a
......@@ -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"]));
......
......@@ -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"]));
......
......@@ -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"]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment