3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'app/controllers/govuk_publishing_components/applications_page_controller.rb', line 3
def show
applications = [
{
type: "public-facing",
apps: %w[collections email-alert-frontend feedback finder-frontend frontend government-frontend smart-answers static].sort,
},
{
type: "publishing",
apps: %w[content-data-admin collections-publisher travel-advice-publisher whitehall datagovuk_find local-links-manager places-manager support manuals-publisher service-manual-publisher short-url-manager specialist-publisher content-tagger publisher transition search-admin].sort,
},
{
type: "utility",
apps: %w[account-api signon govspeak govspeak-preview release govuk-developer-docs govuk-chat].sort,
},
]
@cache_status = Rails.application.config.cache_store != :null_store
@performcache_status = Rails.application.config.action_controller.perform_caching
@applications_output = Rails.cache.fetch("applications_cache", expires_in: 5.minutes) do
applications_data(applications)
end
end
|