Skip to content

Commit

Permalink
Add action caching to public stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cguess committed Sep 19, 2024
1 parent 6354635 commit e7fec73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,5 @@ gem "async", "2.12.0"
gem "activegraph" # For example, see https://rubygems.org/gems/activegraph/versions for the latest versions
gem "neo4j-ruby-driver"

# We want to manage our meta tags for publically available pages
gem "meta-tags"
# Caching
gem "actionpack-action_caching"
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ GEM
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionpack-action_caching (1.2.2)
actionpack (>= 4.0.0)
actiontext (7.0.8)
actionpack (= 7.0.8)
activerecord (= 7.0.8)
Expand Down Expand Up @@ -351,8 +353,6 @@ GEM
webrick (~> 1.7)
webrobots (~> 0.1.2)
memory_profiler (1.0.1)
meta-tags (2.22.0)
actionpack (>= 6.0.0, < 8.1)
method_source (1.0.0)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
Expand Down Expand Up @@ -709,6 +709,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
actionpack-action_caching
activegraph
amazing_print
async (= 2.12.0)
Expand Down Expand Up @@ -744,7 +745,6 @@ DEPENDENCIES
mailgun-ruby (~> 1.2)
mechanize
memory_profiler
meta-tags
minitest-hooks
neo4j-ruby-driver
os
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/public_access/media_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class PublicAccess::MediaController < ApplicationController
caches_action :index, :show

sig { void }
def index
@page_metadata = { title: "Archive", description: "Archive" }
Expand Down

0 comments on commit e7fec73

Please sign in to comment.