Fix file content cache logic