Check whether we're using cache when considering symlink