added a function isCached for CCtrl