From: Andrew Dolgov Date: Sun, 24 Jan 2010 16:23:29 +0000 (+0300) Subject: filters: properly reset memcached on add/remove operations X-Git-Tag: 1.4.1~34 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f3f54944436db742c8e70e16fc90f36fb5ad4c17;p=tt-rss.git filters: properly reset memcached on add/remove operations --- diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 0329a129..f6ab572f 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1192,8 +1192,8 @@ print " "; -/* print " + "; if (FORCE_ARTICLE_PURGE == 0) { print @@ -1202,10 +1202,9 @@ print " - - "; + "; - print ""; */ + print ""; /* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { print " 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"]);