Skip to content

Commit

Permalink
Merge pull request #712 from projecthydra/faster_startup
Browse files Browse the repository at this point in the history
Speed up the first load if there are lots of objects in the graph
  • Loading branch information
carolyncole committed Feb 10, 2015
2 parents d14c553 + af6df57 commit ff44d25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/active_fedora/fedora.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def ldp_resource_service

# Call this to create a Container Resource to act as the base path for this connection
def init_base_path
connection.get(root_resource_path)
ActiveFedora::Base.logger.info "Attempted to init base path `#{root_resource_path}`, but it already exists" if ActiveFedora::Base.logger
return false
connection.head(root_resource_path)
ActiveFedora::Base.logger.info "Attempted to init base path `#{root_resource_path}`, but it already exists" if ActiveFedora::Base.logger
false
rescue Ldp::NotFound
if !host.downcase.end_with?("/rest")
ActiveFedora::Base.logger.warn "Fedora URL (#{host}) does not end with /rest. This could be a problem. Check your fedora.yml config"
Expand Down

0 comments on commit ff44d25

Please sign in to comment.