lru-cache settings. Closes #1236