Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Product titles lost with caching and i18n in 2.4 #133

Open
burlap opened this issue Jan 20, 2015 · 4 comments
Open

Product titles lost with caching and i18n in 2.4 #133

burlap opened this issue Jan 20, 2015 · 4 comments

Comments

@burlap
Copy link

burlap commented Jan 20, 2015

I discovered the issue in production, but enabling caching in development also triggers the bug: after switching locale back and forth, the product title on a product page disappears. In Spree without fancy it works fine. Looks like it's related to moving the title to subheader.

Tested also with clean 2.4 stable.

@crystalized
Copy link

I'm having the same issue in production mode or in development mode with caching enabled. This issue is happening in a fresh clean install of spree_fancy. The only way to restore the title is to delete the cache. But the title immediately goes away again once you've refreshed.

config.action_controller.perform_caching = false
I've temporarily disabled the cache in production mode since I don't know how to fix it.

@rsempe
Copy link

rsempe commented Jun 18, 2015

+1 Same issue here

@burlap
Copy link
Author

burlap commented Jun 18, 2015

It's a Rails issue with content_for, try using this gist: https://gist.github.com/dignoe/2485272
(It works for me, but I haven't tested it thoroughly)

@crystalized
Copy link

The hack is working me and I haven't noticed any issues so far. Thank you for posting this, @burlap!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants