implement App.clearCache

This implement clearing cache function.