HumHub Documentation (unofficial)

CacheInterface

Parser cache interface.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

Methods

isFresh()  : bool
Checks that cache for feature exists and is fresh.
read()  : FeatureNode
Reads feature cache from path.
write()  : mixed
Caches feature node.

Methods

isFresh()

Checks that cache for feature exists and is fresh.

public isFresh(string $path, int $timestamp) : bool
Parameters
$path : string

Feature path

$timestamp : int

The last time feature was updated

Return values
bool

        
On this page

Search results