mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
tune IPFS archiver to go more quickly (now that it's more stable/fast)
This commit is contained in:
parent
2ef7668595
commit
35d03e95e2
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,8 @@ class Archive < Sequel::Model
|
||||||
many_to_one :site
|
many_to_one :site
|
||||||
set_primary_key [:site_id, :ipfs_hash]
|
set_primary_key [:site_id, :ipfs_hash]
|
||||||
unrestrict_primary_key
|
unrestrict_primary_key
|
||||||
MAXIMUM_ARCHIVES_PER_SITE = 500
|
MAXIMUM_ARCHIVES_PER_SITE = 100
|
||||||
|
ARCHIVE_WAIT_TIME = 5.seconds
|
||||||
|
|
||||||
def before_destroy
|
def before_destroy
|
||||||
unpin
|
unpin
|
||||||
|
|
|
@ -1382,7 +1382,7 @@ class Site < Sequel::Model
|
||||||
]
|
]
|
||||||
sql.first
|
sql.first
|
||||||
|
|
||||||
ArchiveWorker.perform_in 24.hours, self.id
|
ArchiveWorker.perform_in Archive::ARCHIVE_WAIT_TIME, self.id
|
||||||
end
|
end
|
||||||
|
|
||||||
reload
|
reload
|
||||||
|
|
Loading…
Add table
Reference in a new issue