module ActiveFedora::LdpCache::ClassMethods

Public Instance Methods

cache(&block) click to toggle source

Enable the query cache within the block if Active Fedora is configured. If it’s not, it will execute the given block.

# File lib/active_fedora/ldp_cache.rb, line 7
def cache(&block)
  connection = ActiveFedora.fedora.connection
  connection.cache(&block)
end
uncached(&block) click to toggle source

Disable the query cache within the block if Active Fedora is configured. If it’s not, it will execute the given block.

# File lib/active_fedora/ldp_cache.rb, line 14
def uncached(&block)
  ActiveFedora.fedora.connection.uncached(&block)
end