Add caching layer to metrics (#17617)
This commit is contained in:
parent
8338826963
commit
b377022cf9
18 changed files with 165 additions and 55 deletions
|
@ -7,12 +7,12 @@ class Admin::Metrics::Dimension::SoftwareVersionsDimension < Admin::Metrics::Dim
|
|||
'software_versions'
|
||||
end
|
||||
|
||||
def data
|
||||
protected
|
||||
|
||||
def perform_query
|
||||
[mastodon_version, ruby_version, postgresql_version, redis_version]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def mastodon_version
|
||||
value = Mastodon::Version.to_s
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue