#3 version - fix in cache function and loaded cache function