mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
defer screenshot update for one minute
This commit is contained in:
parent
93b0dce694
commit
341880db74
1 changed files with 1 additions and 1 deletions
|
@ -1259,7 +1259,7 @@ class Site < Sequel::Model
|
|||
purge_cache path
|
||||
|
||||
if pathname.extname.match HTML_REGEX
|
||||
ScreenshotWorker.perform_async values[:username], relative_path
|
||||
ScreenshotWorker.perform_in 1.minute, values[:username], relative_path
|
||||
elsif pathname.extname.match IMAGE_REGEX
|
||||
ThumbnailWorker.perform_async values[:username], relative_path
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue