added cache clearing