Skip to content

Commit

Permalink
Remove call to URI.Encode for dragonfly.cache_store_root. (#3490)
Browse files Browse the repository at this point in the history
URI.Encode is deprecated.
The line is commented 
```
URI.encode("file:#{extension.dragonfly_cache_store_root}/meta"), # URI encoded in case of spaces
```

This variable being encoded is used as a file path and it  is not clear that encoding spaces is useful in this case.
  • Loading branch information
anitagraham authored Jul 14, 2021
1 parent a14119d commit 9cb333d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dragonfly/lib/refinery/dragonfly/dragonfly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def attach!(app, extension)
unless app.config.action_controller.perform_caching && app.config.action_dispatch.rack_cache
app.config.middleware.insert 0, ::Rack::Cache, {
verbose: extension.dragonfly_cache_log_level =='verbose',
metastore: URI.encode("file:#{extension.dragonfly_cache_store_root}/meta"), # URI encoded in case of spaces
entitystore: URI.encode("file:#{extension.dragonfly_cache_store_root}/body")
metastore: "file:#{extension.dragonfly_cache_store_root}/meta",
entitystore: "file:#{extension.dragonfly_cache_store_root}/body"
}
end
app.config.middleware.insert_after ::Rack::Cache, ::Dragonfly::Middleware, extension.dragonfly_name
Expand Down

0 comments on commit 9cb333d

Please sign in to comment.