getCachingEnabled

boolean log.getCachingEnabled ( ) (professional and enterprise editions only)

Description

Returns whether or not the cache is enabled for the scrape. When enabled, it simply means that each ScrapeableFile will save the content it downloads from the server to the file system so it can be viewed later, generally for debugging purposes.

Parameters

This method takes no parameters

Return Value

Returns true if caching is currently enabled for this session

Change Log

Version Description
5.5.29a Available in all editions.
5.5.32a Available enterprise and professional editions (Returns false in basic edition, but doesn't throw an Exception).
Renamed from getCacheEnabled to getCachingEnabled.
5.5.43a Moved from session to log class.

Examples

Log the cache state

 if(log.getCachingEnabled())
 {
   session.log("Currently caching the session.");
 }