Renamed InvalidateRecordCache to ClearRecordCache and added ClearRecordCache overload to clear all types in both the reader and writer.