diff --git a/commafeed-server/doc/commafeed.adoc b/commafeed-server/doc/commafeed.adoc index 8427d484..20ab7d8a 100644 --- a/commafeed-server/doc/commafeed.adoc +++ b/commafeed-server/doc/commafeed.adoc @@ -417,7 +417,7 @@ a| [[commafeed-server_commafeed-feed-refresh-force-refresh-cooldown-duration]] [ [.description] -- -Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds. 0 to disable. +Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds. ifdef::add-copy-button-to-env-var[] @@ -428,7 +428,7 @@ Environment variable: `+++COMMAFEED_FEED_REFRESH_FORCE_REFRESH_COOLDOWN_DURATION endif::add-copy-button-to-env-var[] -- |link:https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html[Duration] link:#duration-note-anchor-{summaryTableId}[icon:question-circle[title=More information about the Duration format]] -|`1M` +|`0S` h|[[commafeed-server_section_commafeed-database]] [.section-name.section-level0]##Database settings## diff --git a/commafeed-server/src/main/java/com/commafeed/CommaFeedConfiguration.java b/commafeed-server/src/main/java/com/commafeed/CommaFeedConfiguration.java index ee3115d4..1cd86b93 100644 --- a/commafeed-server/src/main/java/com/commafeed/CommaFeedConfiguration.java +++ b/commafeed-server/src/main/java/com/commafeed/CommaFeedConfiguration.java @@ -212,10 +212,8 @@ public interface CommaFeedConfiguration { /** * Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds. - * - * 0 to disable. */ - @WithDefault("1m") + @WithDefault("0") Duration forceRefreshCooldownDuration(); } diff --git a/commafeed-server/src/main/resources/application.properties b/commafeed-server/src/main/resources/application.properties index 3c424f2e..fd935a6c 100644 --- a/commafeed-server/src/main/resources/application.properties +++ b/commafeed-server/src/main/resources/application.properties @@ -49,6 +49,7 @@ quarkus.native.add-all-charsets=true %test.commafeed.users.allow-registrations=true %test.commafeed.password-recovery-enabled=true %test.commafeed.http-client.cache.enabled=false +%test.commafeed.feed-refresh.force-refresh-cooldown-duration=1m # prod profile overrides