class ParserCache (View source)

Helper around the ParsePartials Cache.

Connected in the boot to flush caches on file-change. Caches partials when requested by the Fusion Parser.

Traits

Identifier for the ParsePartials Cache.

Properties

protected VariableFrontend $parsePartialsCache
protected PackageManager $packageManager
protected $enableCache

Methods

cacheForFusionFile(string|null $contextPathAndFilename, Closure $generateValueToCache)

No description

mixed
cacheForDsl(string $identifier, string $code, Closure $generateValueToCache)

No description

Details

FusionFile cacheForFusionFile(string|null $contextPathAndFilename, Closure $generateValueToCache)

No description

Parameters

string|null $contextPathAndFilename
Closure $generateValueToCache

Return Value

FusionFile

mixed cacheForDsl(string $identifier, string $code, Closure $generateValueToCache)

No description

Parameters

string $identifier
string $code
Closure $generateValueToCache

Return Value

mixed