You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although it is arguable that I should be using states for Comment::Cell::Show and Comment::Cell::Summary, for my particular use case it is necessary. My current work around is override state_cache_key as below.
classApplication::Cell < Trailblazer::Cellclass << self# Computes the complete, namespaced cache key for +state+.defstate_cache_key(state,key_parts={})last_name=util.underscore(name.sub(/(.+::Cell::)/,''))expand_cache_key([controller_path,last_name,state,key_parts])endend
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: