Limit splay width to 1d / 1h for meta and content
This commit is contained in:
parent
b4cc42db2c
commit
b7048dc565
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ module FicTracker::Models
|
||||||
def refresh_metadata(splay: false)
|
def refresh_metadata(splay: false)
|
||||||
return unless backend && needs_metadata_refresh?
|
return unless backend && needs_metadata_refresh?
|
||||||
|
|
||||||
self.last_metadata_refresh += rand(-METADATA_REFRESH_INTERVAL..METADATA_REFRESH_INTERVAL) / 20 if splay
|
self.last_metadata_refresh += rand(-3600..3600) * 24 if splay
|
||||||
refresh_metadata!
|
refresh_metadata!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -222,7 +222,7 @@ module FicTracker::Models
|
||||||
def refresh_content(splay: false)
|
def refresh_content(splay: false)
|
||||||
return unless backend && needs_content_refresh?
|
return unless backend && needs_content_refresh?
|
||||||
|
|
||||||
self.last_content_refresh += rand(-CONTENT_REFRESH_INTERVAL..CONTENT_REFRESH_INTERVAL) / 20 if splay
|
self.last_content_refresh += rand(-3600..3600) if splay
|
||||||
refresh_content!
|
refresh_content!
|
||||||
# chapters.each(&:refresh_content)
|
# chapters.each(&:refresh_content)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue