"Fossies" - the Fresh Open Source Software Archive

Member "discourse-2.8.3/config/initializers/001-redis.rb" (14 Apr 2022, 298 Bytes) of package /linux/www/discourse-2.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # frozen_string_literal: true
    2 
    3 if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
    4   puts "Flushing redis (development mode)"
    5   Discourse.redis.flushdb
    6 end
    7 
    8 # Pending https://github.com/MiniProfiler/rack-mini-profiler/pull/450 and
    9 # upgrade to Sidekiq 6.1
   10 Redis.exists_returns_integer = true