@@ -4,7 +4,9 @@ class CacheClearJob < ApplicationJob
include HasActiveJobLock
def perform
- Rails.cache.cleanup
+ # cleanup is not supported by every backend so
+ # try only if exists
+ Rails.cache.try(:cleanup)
rescue => e
Rails.logger.error "Scheduled cache cleanup failed! #{e.inspect}"
end