n8 / multi_fetch_fragments

Multi-fetch Fragments makes rendering and caching a collection of template partials easier and faster.
http://ninjasandrobots.com/rails-faster-partial-rendering-and-caching
MIT License
539 stars 63 forks source link

Works with Rails 4 Cache Digests? #5

Closed thomasklemm closed 11 years ago

thomasklemm commented 11 years ago

Hey,

this looks extremely nice. One theoretical question: Does multi_fetch_fragments also handle the new Rails 4 way of including a digest of the rendered template and it's dependencies into the cache key?

This behavior is abstracted for Rails 3.2 into the Cache Digests gem as well.

Thanks for your answer in advance.

Best regards, Thomas

n8 commented 11 years ago

Hey Thomas,

Thanks for the note. No, unfortunately I don't think it's going to work as is. I just took a brief look at the Cache Digest.

But it doesn't look impossible to alter this gem to generate fragment keys like Cache Digest does and make sure this stuff still works.

-Nate

PikachuEXE commented 11 years ago

Cache Digest support would definitely makes this gem even better!!

Thanks for your work btw. :rose:

Off Topic: this page looks nicer to Github readme
Maybe put the link into readme?

PikachuEXE commented 11 years ago

:thumbsup:

You might want to state that the gem is compatible with Cache Digest

thomasklemm commented 11 years ago

Nice, thanks :-D