Updating cache directory structure