Class: QaServer::ScenarioHistoryGraphCache
- Inherits:
-
Object
- Object
- QaServer::ScenarioHistoryGraphCache
- Defined in:
- app/cache_processors/qa_server/scenario_history_graph_cache.rb
Class Method Summary collapse
-
.generate_graph(data:, force: false) ⇒ Object
Generates graphs for the past 30 days for :search, :fetch, and :all actions for each authority.
Class Method Details
.generate_graph(data:, force: false) ⇒ Object
Generates graphs for the past 30 days for :search, :fetch, and :all actions for each authority.
8 9 10 11 12 13 14 |
# File 'app/cache_processors/qa_server/scenario_history_graph_cache.rb', line 8 def generate_graph(data:, force: false) Rails.cache.fetch(cache_key, expires_in: next_expiry, race_condition_ttl: 30.seconds, force: force) do QaServer.config.monitor_logger.debug("(QaServer::ScenarioHistoryGraphCache) - KICKING OFF HISTORY GRAPH GENERATION (force: #{force})") QaServer::HistoryGraphJob.perform_later(data: data) "Graph generation initiated at #{QaServer::TimeService.current_time}" end end |