discourse/app
Sam Saffron 3d85cc1e69 PERF: run expensive clean up uploads less frequently
Previously every hour we would run a full scan of the entire DB searching
for expired uploads that need to be moved to the tombstone folder.

This commit amends it so we only run the job 2 times per clean_orpha_uploads_grace_period_hours

There is a upper bound of 7 days so even if the grace period is set really
high it will still run at least once a week.

By default we have a 48 grace period so this amends it to run this cleanup
daily instead of hourly. This eliminates 23 times we run this ultra expensive
query.
2019-10-28 11:14:52 +11:00
..
assets FIX: Hide muted subcategories (#8239) 2019-10-25 10:08:13 +11:00
controllers FEATURE: wiki editors are allowed edit tags for wiki topics. 2019-10-23 23:35:38 +05:30
helpers DEV: pluck_first 2019-10-21 12:08:20 +01:00
jobs PERF: run expensive clean up uploads less frequently 2019-10-28 11:14:52 +11:00
mailers PERF: cache new users counts in summary emails 2019-10-25 16:33:36 -04:00
models FIX: When running the wizard and using a custom theme, fallback to the color_scheme name if the base_scheme_id is nil (#8236) 2019-10-25 09:29:51 -03:00
serializers FEATURE: wiki editors are allowed edit tags for wiki topics. 2019-10-23 23:35:38 +05:30
services FIX: check for presence of liked post before creating notification 2019-10-24 14:25:56 +05:30
views minor button styling for admin login 2019-10-22 16:45:23 -04:00