MarkupCache::save()

Save the data to the cache

Must be preceded by a call to get() so that you have set the cache unique name

Usage

$int = $markupCache->save(string $data);

Arguments

NameType(s)Description
$datastring

Data to cache

Return value

int

Number of bytes written to cache, or FALSE on failure.

Exceptions

Method can throw exceptions on error:

  • WireException


MarkupCache methods and properties

API reference based on ProcessWire core version 3.0.253