mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 07:43:41 +08:00
1a8ca68ea3
* Dashboard doesn't timeout anymore when Amazon S3 is used for backups * Storage stats are now a proper report with the same caching rules * Changing the backup_location, s3_backup_bucket or creating and deleting backups removes the report from the cache * It shows the number of backups and the backup location * It shows the used space for the correct backup location instead of always showing used space on local storage * It shows the date of the last backup as relative date
19 lines
412 B
Ruby
19 lines
412 B
Ruby
class Admin::DashboardNextController < Admin::AdminController
|
|
def index
|
|
data = AdminDashboardNextIndexData.fetch_cached_stats
|
|
|
|
if SiteSetting.version_checks?
|
|
data.merge!(version_check: DiscourseUpdates.check_version.as_json)
|
|
end
|
|
|
|
render json: data
|
|
end
|
|
|
|
def moderation; end
|
|
def security; end
|
|
|
|
def general
|
|
render json: AdminDashboardNextGeneralData.fetch_cached_stats
|
|
end
|
|
end
|