1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 02:05:56 +00:00

get_version: fix commit/timestamp lost on subsequent invocations because of misbehaving caching

This commit is contained in:
Andrew Dolgov
2019-12-20 18:17:05 +03:00
parent e9b4834b6b
commit fdb1fc7608
2 changed files with 17 additions and 9 deletions

View File

@@ -595,7 +595,7 @@ class RPC extends Handler_Protected {
get_version($git_commit, $git_timestamp);
if (CHECK_FOR_UPDATES && $_SESSION["access_level"] >= 10 && $git_timestamp) {
if (defined('CHECK_FOR_UPDATES') && CHECK_FOR_UPDATES && $_SESSION["access_level"] >= 10 && $git_timestamp) {
$content = @fetch_file_contents(["url" => "https://srv.tt-rss.org/version.json"]);
if ($content) {