event purging refactor

This commit is contained in:
Chris kerr 2024-11-12 21:38:35 -05:00
parent 7e5e3758c3
commit 682a2074f3

View File

@ -75,17 +75,16 @@ rate_limit:
event_purge: event_purge:
enabled: true # Toggle to enable/disable event purging enabled: true # Toggle to enable/disable event purging
keep_duration_days: 2 # Number of days to keep events keep_interval_hours: 24 # Number of hours to keep events before purging
purge_interval_hours: 24 # Runs every 24 hours purge_interval_minutes: 1 # Interval in minutes for running the purge
purge_by_category: # Configure purging based on categories purge_by_category: # Configure purging based on categories
parameterized_replaceable: false
regular: true regular: true
replaceable: false replaceable: false
purge_by_kind: # Configure purging based on event kind parameterized_replaceable: false
- kind: 0 deprecated: true
enabled: false purge_by_kind_enabled: false # Enable purging by specific kinds, if false, all collections will be purged
- kind: 1 kinds_to_purge: # List of event kinds to explicitly purge
enabled: true - 1
- kind: 3 - 2
enabled: false - 1000
exclude_whitelisted: true # Exclude events from whitelisted pubkeys during purging exclude_whitelisted: true # Exclude events from whitelisted pubkeys during purging