1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 23:01:27 +00:00

filters: properly reset memcached on add/remove operations

This commit is contained in:
Andrew Dolgov
2010-01-24 19:23:29 +03:00
parent b62f7265cc
commit f3f5494443
2 changed files with 9 additions and 6 deletions

View File

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