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.");
}
{
session.log("Currently caching the session.");
}
mikes on 11/21/2011 at 2:24 pm
- Printer-friendly version
- Login or register to post comments