Module: RedmineGitHosting::Cache::DatabasePatch::InstanceMethods
- Defined in:
- lib/redmine_with_git/patches/redmine_git_hosting/cache/database_patch.rb
Instance Method Summary collapse
Instance Method Details
#apply_cache_limit ⇒ Object
11 12 13 14 15 |
# File 'lib/redmine_with_git/patches/redmine_git_hosting/cache/database_patch.rb', line 11 def apply_cache_limit return unless max_cache_elements >= 0 && GitCache.count > max_cache_elements GitCache.order(created_at: :desc).last.destroy end |