filters: properly reset memcached on add/remove operations

master
Andrew Dolgov 15 years ago
parent b62f7265cc
commit f3f5494443

@ -1192,8 +1192,8 @@
print "<button onclick=\"javascript:removeSelectedFeeds()\">"
.__('Unsubscribe')."</button> ";
/* print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
<option value=\"facDefault\" selected>".__('Other actions...')."</option>";
print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
<option value=\"facDefault\" selected>".__('More actions...')."</option>";
if (FORCE_ARTICLE_PURGE == 0) {
print
@ -1202,10 +1202,9 @@
print "
<option value=\"facClear\">".__('Clear feed data')."</option>
<option value=\"facRescore\">".__('Rescore articles')."</option>
<option value=\"facUnsubscribe\">".__('Unsubscribe')."</option>";
<option value=\"facRescore\">".__('Rescore articles')."</option>";
print "</select>"; */
print "</select>";
/* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
print " <input type=\"submit\" class=\"button\"

@ -215,6 +215,8 @@
}
if ($subop == "remove") {
if ($memcache) $memcache->flush();
$ids = split(",", db_escape_string($_REQUEST["ids"]));
@ -224,7 +226,9 @@
}
if ($subop == "add") {
if ($memcache) $memcache->flush();
$regexp = db_escape_string(trim($_REQUEST["reg_exp"]));
$filter_type = db_escape_string(trim($_REQUEST["filter_type"]));
$feed_id = db_escape_string($_REQUEST["feed_id"]);

Loading…
Cancel
Save