Sets up an attribute to cache data in the app context

def configure_cache(app):
    """ Sets up an attribute to cache data in the app context """
    log = logging.getLogger('ara.webapp.configure_cache')
    log.debug('Configuring cache')

    if not getattr(app, '_cache', None):
        app._cache = {}