} else {
setcookie("ttrss_vf_hreadf", 0);
}
+
+ setcookie('ttrss_vf_refresh', FEEDS_FRAME_REFRESH);
}
$fetch = $_GET["fetch"];
define('TMP_DIRECTORY', '/tmp');
// Directory for temporary files
+
+ define('FEEDS_FRAME_REFRESH', 600);
+ // Auto refresh interval for feeds frame (in seconds)
// vim:ft=php
?>
function timeout() {
scheduleFeedUpdate(false);
- setTimeout("timeout()", 900*1000);
+
+ var refresh_time = getCookie('ttrss_vf_refresh');
+
+ if (!refresh_time) refresh_time = 600;
+
+ setTimeout("timeout()", refresh_time*1000);
}
function resetSearch() {