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

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

Loading…
Cancel
Save