Fixed behavior of nested cache providers.