-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with controller_path for cache keys #13
Comments
Although it is arguable that I should be using states for class Application::Cell < Trailblazer::Cell
class << self
# Computes the complete, namespaced cache key for +state+.
def state_cache_key(state, key_parts={})
last_name = util.underscore(name.sub(/(.+::Cell::)/, ''))
expand_cache_key([controller_path, last_name, state, key_parts])
end
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
controller_path
seems to be used for both cache keys and view pathsThe method is as seen below.
https://github.com/trailblazer/trailblazer-cells/blob/master/lib/trailblazer/cell.rb#L34:L37
Currently it is producing duplicate cache keys for different cells as below
My expectation is that cache keys should be
The text was updated successfully, but these errors were encountered: