clear cache preference, count cache size