Sha256: 2e1b403e7d3161a7d36f394ed6fb8baab6d9659a02eafb8f535952045ce22a76

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

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, :sidekiq
  config.job_backend = :none

  # Array of Varnish servers to manage
  config.varnish_servers << {
    :host => "0.0.0.0", :port => 6082 # if you have authentication enabled, add :secret => "your secret"
  }

  # 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) }


  ### Varnish - 2.x  /  3.x  .. VCL-Changes
  ### https://www.varnish-cache.org/docs/trunk/installation/upgrade.html

  # => Purge Command  ( "url.purge" for Varnish 2.x .. "ban.url" for Varnish 3.x )
  # => purges are now called bans in Varnish 3.x .. purge() and purge_url() are now respectively ban() and ban_url()
  config.purge_command = "url.purge"

  # => VCL_Fetch Pass Command  ( "pass" for Varnish 2.x .. "hit_for_pass" for Varnish 3.x )
  # => pass in vcl_fetch renamed to hit_for_pass in Varnish 3.x   
  config.pass_command = "pass"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lacquer-0.6.7.pre.alpha1 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.7.pre.alpha lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.6 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.5 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.4 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.3 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.2 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.1 lib/generators/lacquer/templates/initializer.rb
lacquer-0.6.0 lib/generators/lacquer/templates/initializer.rb