Class: Ecfr::VarnishCacheService::Base
- Inherits:
-
Base
- Object
- Base
- Ecfr::VarnishCacheService::Base
- Defined in:
- lib/ecfr/varnish_cache_service/base.rb
Class Method Summary collapse
Class Method Details
.base_url ⇒ Object
8 9 10 |
# File 'lib/ecfr/varnish_cache_service/base.rb', line 8 def self.base_url Ecfr.config.varnish_cache_service_url end |
.expire(path) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/ecfr/varnish_cache_service/base.rb', line 16 def self.expire(path) # not all backends support the purge verb # - the varnish purge proxy expects delete if Ecfr.config.varnish_cache_service_clear_method.to_s == "delete" delete(path) else purge(path) end end |
.expire_everything ⇒ Object
26 27 28 |
# File 'lib/ecfr/varnish_cache_service/base.rb', line 26 def self.expire_everything expire("/.*") end |
.service_name ⇒ Object
12 13 14 |
# File 'lib/ecfr/varnish_cache_service/base.rb', line 12 def self.service_name "Varnish Cache Service" end |