Sha256: 8df61a39891d8f247aaea1f63b743a3ad9cf585f90c4b31785a029d05dc538bd

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

Thinner.configure do |config|
  # Number of urls to purge at one time. These purge requests are fired in quick
  # succession. Thinner is perfectly capable of killing a Varnish server, by
  # overloading the worker thread, so be really conservative with this option.
  config.batch_length = 10

  # The amount of time to sleep between purges in seconds.
  config.sleep_time   = 1

  # The server address and management port. See:
  #   http://www.varnish-cache.org/trac/wiki/ManagementPort
  # for details.
  config.server       = "127.0.0.1:6082"

  # By default, every time you call Thinner.purge! thinner spins off a new
  # instance of Thinner::Client and terminates any old instances that are
  # running. If you want to have overlapping instances set this to true.
  # It's not recommended to have multiple Thinner::Client's running at the
  # same time.
  config.no_kill      = false

  # The log file (either a string or file object) to log the current batch to.
  # Defaults to STDOUT
  config.log_file     = STDOUT
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinner-0.1.4 documentation/examples/configure.rb
thinner-0.1.3 documentation/examples/configure.rb
thinner-0.1.2 documentation/examples/configure.rb
thinner-0.1.1 documentation/examples/configure.rb
thinner-0.1.0 documentation/examples/configure.rb