SetBrowserCache

SetBrowserCache — Control browser-side image caching

Synopsis

$plot->SetBrowserCache($browser_cache)

Description

SetBrowserCache controls whether to allow the browser to cache the image generated by PHPlot. By default, PHPlot sends out HTTP headers to tell the browser not to cache the generated image, since it is assumed that the image is generated from dynamic data and a cached copy would not be accurate. You can use this function to allow the browser to cache the image.

Parameters

$browser_cache

True to allow the browser to cache the image; False to not allow the browser to cache the image.

SourceForge.net Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.