mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 03:58:34 +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
12 lines
444 B
Ruby
12 lines
444 B
Ruby
class Admin::DashboardController < Admin::AdminController
|
|
def index
|
|
dashboard_data = AdminDashboardData.fetch_cached_stats || Jobs::DashboardStats.new.execute({})
|
|
dashboard_data.merge!(version_check: DiscourseUpdates.check_version.as_json) if SiteSetting.version_checks?
|
|
render json: dashboard_data
|
|
end
|
|
|
|
def problems
|
|
render_json_dump(problems: AdminDashboardData.fetch_problems(check_force_https: request.ssl?))
|
|
end
|
|
end
|