Skip to content

Commit 5b83d3a

Browse files
committed
Add a long expiry date to rails cache.
1 parent efc4be5 commit 5b83d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/critical-path-css-rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module CriticalPathCss
55

66
def self.generate
77
CssFetcher.new.fetch.each do |route, css|
8-
Rails.cache.write(route, css, namespace: CACHE_NAMESPACE)
8+
Rails.cache.write(route, css, namespace: CACHE_NAMESPACE, expires_in: 2.years)
99
end
1010
end
1111

0 commit comments

Comments
 (0)