Closed nightsurge closed 7 years ago
I'll try it out
@nightsurge How would cache expiration work?
Added info on how can you set cache expiration in the README and released the gem version
Looks like you found it :) it just uses your global policy by default (from application/development/production.rb) or accepts the expires_in parameter in the view like you added to the README
Also, I'm the same user as surgevelocityllc (personal vs private accounts). Thanks for making me a contributor!
Yeah, just passed in expires_in
and it worked. This isn't documented explicitly in documentation for cache
method.
I've added @nightsurge as contributing account. Cheers! 🍻
Confession: I was unable to test my changes from prior pull request until last night.
I've made a few discoveries that were preventing things from working as intended. This new pull request is fully working for me now in my own project 💯