cacheScrapeableFile

File log.cacheScrapeableFile ( ScrapeableFile scrapeableFile ) (professional and enterprise editions only)

Description

Caches the HTML and headers of the scrapeable file. This will include both the request and response headers.

Parameters

  • scrapeableFile The scrapeable file to cache.

Return Value

A File that represents the cached file.

Change Log

Version Description
5.5.29a Available in professional and enterprise editions.
5.5.43a Moved from session to log class.

Examples

Cache the current file

 // Note that this will cause a duplicate file, as with caching enabled this will happen automatically.
 // It may be useful in some cases if file manipulation is going to be performed on the returned File
 log.cacheScrapeableFile(scrapeableFile);