Document clearCache function