Ruby on Rails expiring cache fragments with submit to remote
I'm trying to expire cache fragments in a submit_to_remote method. The problem is that the method submit_to_remote calls doesn't expire the cache fragment. I was wondering if 开发者_开发问答expiring fragments through ajax is different some how?
Thanks
You can't delete the content of your page without do it in javascript or refresh the page.
So if you expire the fragment cache is do in your server not in your client.
Is your cached fragment living outside of the container that gets updated after successful submit_to_remote? If so, you would of course have to refresh the page as the cache lives on the server side & the fragment is in the browser world.
精彩评论