mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
ipfs: archive every 10 minutes, allow disabling, make archives public
This commit is contained in:
parent
f82cbad73e
commit
1002aa01f7
7 changed files with 45 additions and 29 deletions
|
@ -5,7 +5,7 @@ class Archive < Sequel::Model
|
|||
set_primary_key [:site_id, :ipfs_hash]
|
||||
unrestrict_primary_key
|
||||
MAXIMUM_ARCHIVES_PER_SITE = 100
|
||||
ARCHIVE_WAIT_TIME = 1.hour
|
||||
ARCHIVE_WAIT_TIME = 10.minutes
|
||||
|
||||
def before_destroy
|
||||
unpin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue