fix cache clearing