- Bugfix: flush the cache after updating the new feeds (or after having

added or removed news items).  Fixes bug #2088.
4.2.x
Dries Buytaert 2003-06-28 22:48:18 +00:00
parent 646bb31a42
commit 4d29898a96
3 changed files with 3 additions and 0 deletions

View File

@ -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"]));

View File

@ -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"]));

View File

@ -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"]));