Sha256: 0e6c9c77fab8115819f4001f95a62b3f624e54ba6b62126c4d2a239e0f62670f

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

Lacquer.configure do |config|
  # Globally enable/disable cache
  config.enable_cache = true

  # Unless overridden in a controller or action, the default will be used
  config.default_ttl = 1.week

  # Can be :none, :delayed_job, :resque
  config.job_backend = :none

  # Array of Varnish servers to manage
  config.varnish_servers << {
    :host => "0.0.0.0", :port => 6082
  }

  # Number of retries
  config.retries = 5

  # Config handler (optional, if you use Hoptoad or another error tracking service)
  config.command_error_handler = lambda { |s| HoptoadNotifier.notify(s) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lacquer-0.4.0 lib/generators/lacquer/templates/initializer.rb