lib/caddy/cache.rb in caddy-1.5.0 vs lib/caddy/cache.rb in caddy-1.5.1
- old
+ new
@@ -17,9 +17,10 @@
cache[k]
end
def cache
raise "Please run `Caddy.start` before attempting to access the cache" unless @task && @task.running?
+ raise "Caddy cache access before initial load; allow some more time for your app to start up" unless @cache
@cache
end
def start