SetEntryInfo
SetEntryInfo(Url: String) is the function to use
when you want to modify the cache entry. WINAPI allows
modification of the following values:
EntryType
HitRate
LastModifiedTime
ExpireTime
LastAccessTime
LastSyncTime
ExemptDelta
SetEntryInfo writes the content of
IECache.EntryInfo to the cache, so you just have to place
the new values in the record before calling SetEntryInfo.
Other values then those mentioned above are ignored.
The following sample shows how to use SetEntryInfo to
modify ExpireTime for all entries:
procedure
TForm1.Button1Click(Sender: TObject);
begin
IECache1.SearchPattern:=spAll;
Iecache1.RetrieveEntries(0);
end;
procedure TForm1.IECache1Entry(Sender:
TObject; var Cancel: Boolean);
begin
IECache1.EntryInfo.ExpireTime:=Now;
IECache1.SetEntryInfo(IECache1.EntryInfo.SourceUrlName);
end;
|