Skip to content

Commit

Permalink
disable the refresh_cache on each update call
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Dec 18, 2023
1 parent ab9048e commit cb62d5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/ontologies_api_client/models/ontology.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ def admin?(user)
return administeredBy.any? {|u| u == user.id}
end

def invalidate_cache(cache_refresh_all = true)
self.class.all(invalidate_cache: true, include_views: true)
super(cache_refresh_all)
end

# ACL with administrators
def full_acl
Expand Down
2 changes: 1 addition & 1 deletion lib/ontologies_api_client/read_write.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def invalidate_cache(cache_refresh_all = true)
HTTP.get(self.id, invalidate_cache: true) if self.id
session = Thread.current[:session]
session[:last_updated] = Time.now.to_f if session
refresh_cache
# refresh_cache
end

def refresh_cache
Expand Down

0 comments on commit cb62d5c

Please sign in to comment.