Skip to content
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

Model Page - fix duplicate cache_key #1315

Merged
merged 1 commit into from Feb 22, 2012
Merged

Conversation

vita
Copy link
Contributor

@vita vita commented Feb 22, 2012

page_first = Refinery::Page.create(:title => 'Page first', ...
child_first = page.children.create(:title => 'child', ...

page_second = Refinery::Page.create(:title => 'Page second', ...
child_second = page.children.create(:title => 'child', :skip_to_first_child => true, ...

page_first.cache_key => "refinery/en/page-first"
child_first.cache_key => "refinery/en/child"

page_second.cache_key => "refinery/en/page-second"
child_second.cache_key => "refinery/en/child"

child_first and child_second has duplicate cache_key. It makes a problem in nested_url and nested_path methods.

@parndt
Copy link
Member

parndt commented Feb 22, 2012

True.. thanks!

parndt added a commit that referenced this pull request Feb 22, 2012
Model Page - fix duplicate cache_key
@parndt parndt merged commit 57b3ce1 into refinery:master Feb 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants