Skip to content

page_cache_directory is not initialized or set from config #5

Closed
@codev

Description

@codev

In Rails 3.2 page_cache_directory is initialized to app.config.paths["public"].first in:

https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_controller/railtie.rb

But this doesn't seem the case in this gem. It is never given a default and the value is never copied over from config so the page_cache_directory variable is always blank.

This results in the gem trying to write pages to the root of my web server when upgrading to Rails 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions