Class: MDQT::CLI::CacheControl
- Inherits:
-
Object
- Object
- MDQT::CLI::CacheControl
- Defined in:
- lib/mdqt/cli/cache_control.rb
Class Method Summary collapse
Class Method Details
.cache_type(options) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/mdqt/cli/cache_control.rb', line 13 def cache_type() return :none if .refresh return :memcache if .cache && .memcache return :file if .cache :none end |
.caching_on?(options) ⇒ Boolean
8 9 10 11 |
# File 'lib/mdqt/cli/cache_control.rb', line 8 def caching_on?() return false if cache_type() == :none true end |