module ActiveFedora::LdpCache::ClassMethods

def cache(&block)

If it's not, it will execute the given block.
Enable the query cache within the block if Active Fedora is configured.
def cache(&block)
  connection = ActiveFedora.fedora.connection
  connection.cache(&block)
end

def uncached(&block)

If it's not, it will execute the given block.
Disable the query cache within the block if Active Fedora is configured.
def uncached(&block)
  ActiveFedora.fedora.connection.uncached(&block)
end