Sha256: fd1f1c6cb6829666edf680adf3f6a6ddce485e6fffe3cce3b0472b0d388205db
Contents?: true
Size: 627 Bytes
Versions: 8
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true require "pages_core/static_cache/null_handler" require "pages_core/static_cache/page_cache_handler" require "pages_core/static_cache/varnish_handler" module PagesCore module StaticCache class << self def handler PagesCore.config.static_cache_handler || default_handler end private def default_handler if ENV["VARNISH_URL"] return PagesCore::StaticCache::VarnishHandler.new(ENV["VARNISH_URL"]) end # PagesCore::StaticCache::NullHandler.new PagesCore::StaticCache::PageCacheHandler.new end end end end
Version data entries
8 entries across 8 versions & 1 rubygems