class TrustyCms::Config
def [](key)
def [](key) if table_exists? unless TrustyCms::Config.cache_file_exists? TrustyCms::Config.ensure_cache_file TrustyCms::Config.initialize_cache end TrustyCms::Config.initialize_cache if TrustyCms::Config.stale_cache? Rails.cache.read('TrustyCms::Config')[key] end end