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_with_redmine_with_git ⇒ Object
14 15 16 17 18 |
# File 'lib/redmine_with_git/patches/redmine_git_hosting/cache/database_patch.rb', line 14 def apply_cache_limit_with_redmine_with_git return unless max_cache_elements >= 0 && GitCache.count > max_cache_elements GitCache.order(created_at: :desc).last.destroy end |