added cache cleaning