added cache support in controllers