Added clearing cache directories.