mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Remove unused code
This commit is contained in:
parent
233bbd752e
commit
a183eb400b
2 changed files with 0 additions and 11 deletions
|
@ -69,15 +69,5 @@ class BusinessRegistryCache < ActiveRecord::Base
|
|||
def business_registry
|
||||
Soap::Arireg.new
|
||||
end
|
||||
|
||||
def purge
|
||||
STDOUT << "#{Time.zone.now.utc} - Starting Purge of old BusinessRegistry data from cache\n" unless Rails.env.test?
|
||||
purged = 0
|
||||
BusinessRegistryCache.where('retrieved_on < ?',
|
||||
Time.zone.now < Setting.days_to_keep_business_registry_cache.days).each do |br|
|
||||
br.destroy and purged += 1
|
||||
end
|
||||
STDOUT << "#{Time.zone.now.utc} - Finished purging #{purged} old BusinessRegistry cache items\n" unless Rails.env.test?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue