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 =
'1.4.0'.freeze
Class Method Summary
collapse
Class Method Details
.disk_cache? ⇒ Boolean
135
136
137
|
# File 'lib/seo_cache.rb', line 135
def self.disk_cache?
SeoCache.cache_mode == 'disk'
end
|
.log(message) ⇒ Object
143
144
145
146
|
# File 'lib/seo_cache.rb', line 143
def self.log(message)
SeoCache.logger.info(message)
end
|
.log_error(message) ⇒ Object
148
149
150
151
|
# File 'lib/seo_cache.rb', line 148
def self.log_error(message)
SeoCache.logger.error(message)
end
|
.logger ⇒ Object
139
140
141
|
# File 'lib/seo_cache.rb', line 139
def self.logger
@logger ||= SeoCache::Logger.new(SeoCache.logger_path)
end
|
.memory_cache? ⇒ Boolean
self.logger = SeoCache::Logger.new(SeoCache.logger_path)
131
132
133
|
# File 'lib/seo_cache.rb', line 131
def self.memory_cache?
SeoCache.cache_mode == 'memory'
end
|