Issue 658 cache limits

This new pattern allows to configure the cache TTL using the settings file, and not hardcoded anymore in the framework.