mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
Reduce archives
This commit is contained in:
parent
558edb442e
commit
08a29c8768
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ 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 = 10
|
MAXIMUM_ARCHIVES_PER_SITE = 5
|
||||||
ARCHIVE_WAIT_TIME = 1.minute
|
ARCHIVE_WAIT_TIME = 1.minute
|
||||||
|
|
||||||
def before_destroy
|
def before_destroy
|
||||||
|
|
Loading…
Add table
Reference in a new issue