Flowdock
method

fetch_or_cache_partial

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: CollectionCaching
fetch_or_cache_partial(cached_partials, order_by:) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/renderer/partial_renderer/collection_caching.rb, line 47
      def fetch_or_cache_partial(cached_partials, order_by))
        order_by.map do |cache_key|
          cached_partials.fetch(cache_key) do
            yield.tap do |rendered_partial|
              collection_cache.write(cache_key, rendered_partial)
            end
          end
        end
Register or log in to add new notes.