From 54177285b3de406a12f0e89e1485a5926f3d3434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Sun, 4 Mar 2018 00:54:38 +0100 Subject: [PATCH] version --- gitea-updater.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitea-updater.php b/gitea-updater.php index eaaee60..1ef4d33 100644 --- a/gitea-updater.php +++ b/gitea-updater.php @@ -90,6 +90,10 @@ class Gitea_Updater } } $last_update = get_option('gitea_' . $type . '_updated'); + + + echo $type . ' ' . $this->cache . ' ---- ' . ($last_update + $this->cache) < time() . "\n\n"; + return ($last_update + $this->cache) < time(); }