CWebView::ClearCache Method  
 
BOOL ClearCache();

The ClearCache method removes visited pages from the cache.

Parameters

None.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

This method will clear the browser cache for the current session. This can be useful if you wish to force the browser to reload content. If you have created the browser instance using a temporary data folder, or you have specified the WEBVIEW_OPTION_ENABLE_PRIVACY option, the browser session will always start with a new user profile and will not contain any cached content.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtmv12.lib

See Also