summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-08-31 15:25:42 +0400
committerAndrew Dolgov <[email protected]>2011-08-31 16:15:01 +0400
commit37c03d3a420853b61348de87150a69a567c00146 (patch)
treede39fcfc127af3a7b7a9492bae9689628471e299 /functions.php
parent165c88ff3166825dcccfa2d30a9c3574e64c8549 (diff)
implement automatic precaching for next normal and unread feeds
allow opening cached next_unread_feed on f-q if available tweak getRelativeArticles() to scan forward only reenable prefetch_old server requests
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index bb6164d7b..f0691f209 100644
--- a/functions.php
+++ b/functions.php
@@ -2494,8 +2494,9 @@
if (!$owner_uid) $owner_uid = $_SESSION['uid'];
- if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
+ //if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
+ if (is_numeric($feed)) {
if ($cat_view) {
if ($feed >= 0) {
@@ -2519,7 +2520,6 @@
}
} else if ($feed == -2) {
-
db_query($link, "UPDATE ttrss_user_entries
SET unread = false,last_read = NOW() WHERE (SELECT COUNT(*)
FROM ttrss_user_labels2 WHERE article_id = ref_id) > 0