filters: properly reset memcached on add/remove operations
This commit is contained in:
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\"
|
||||||
|
|
|
@ -216,6 +216,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"]));
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
|
@ -225,6 +227,8 @@
|
||||||
|
|
||||||
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…
Reference in New Issue