theforeman/foreman — pull request #1313 by mbacovsky (2014-03-20 17:26:29+00:00)
Title: Fixes #4755 - use_cache in development

When using API with dynamic bindings in development mode, the client is slow. Every time the server is restarted it needs to load all the controllers and documentation before first API request. It seems to be more comfortable to develeop with use_cache turned on and run rake apipie:cache when it is necessary to refresh the cache.

This patch turns the cache on when in production or when the apipie-cache exists. If the server starts with the cache turned off, it spits suggestion to turn the cache on.

Makes sense?