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(); }