Module: SeoCache
- Defined in:
- lib/seo_cache.rb,
lib/seo_cache/logger.rb,
lib/seo_cache/version.rb,
lib/seo_cache/middleware.rb,
lib/seo_cache/page_render.rb,
lib/seo_cache/page_caching.rb,
lib/seo_cache/populate_cache.rb
Defined Under Namespace
Classes: Logger, Middleware, PageCaching, PageRender, PopulateCache
Constant Summary
collapse
- VERSION =
'2.0.0'.freeze
Class Method Summary
collapse
Class Method Details
.disk_cache? ⇒ Boolean
134
135
136
|
# File 'lib/seo_cache.rb', line 134
def self.disk_cache?
SeoCache.cache_mode == 'disk'
end
|
.log(message) ⇒ Object
142
143
144
145
|
# File 'lib/seo_cache.rb', line 142
def self.log(message)
SeoCache.logger.info(message)
end
|
.log_error(message) ⇒ Object
147
148
149
150
|
# File 'lib/seo_cache.rb', line 147
def self.log_error(message)
SeoCache.logger.error(message)
end
|
.logger ⇒ Object
138
139
140
|
# File 'lib/seo_cache.rb', line 138
def self.logger
@logger ||= SeoCache::Logger.new(SeoCache.logger_path)
end
|
.memory_cache? ⇒ Boolean
self.logger = SeoCache::Logger.new(SeoCache.logger_path)
130
131
132
|
# File 'lib/seo_cache.rb', line 130
def self.memory_cache?
SeoCache.cache_mode == 'memory'
end
|