Skip to content

Commit

Permalink
set :allow_reload/revalidate to false so that random users cannot bus…
Browse files Browse the repository at this point in the history
…t the cache with a refresh or shift+refresh

Signed-off-by: Jim Gay <jim@saturnflyer.com>
  • Loading branch information
johnmuhl authored and saturnflyer committed Aug 1, 2009
1 parent 981c1d6 commit dedd7c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/radiant/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def self.new(app, options={})
Rack::Cache.new(app, {
:entitystore => "radiant:cache/entity",
:metastore => "radiant:cache/meta",
:verbose => false}.merge(options))
:verbose => false,
:allow_reload => false,
:allow_revalidate => false}.merge(options))
end

def self.clear
Expand Down

0 comments on commit dedd7c0

Please sign in to comment.