cache_filemask

File Cache Class provided by System for hiding Filepaths on the Server.

package

SYSTEM\CACHE

Methods

Get Data from Cache

get(\SYSTEM\CACHE\sha1 $ident, boolean $header = false) : mixed
static

Arguments

$ident

\SYSTEM\CACHE\sha1

String Identifier for the cached Content

$header

boolean

Send Header

Response

mixed

Returns the requested Cache Content or NULL

Calculate Ident for a File

ident(array $file) : \SYSTEM\CACHE\sha1
static

Arguments

$file

array

Filepath to be cached

Response

\SYSTEM\CACHE\sha1

Returns the requested Ident

Put Data into the Cache Remark: Saves only the path into the Cache, not the File itself

put(\SYSTEM\CACHE\sha1 $file) : mixed
static

Arguments

$file

\SYSTEM\CACHE\sha1

String Filepath of Content

Response

mixed

Returns the cached Cache Content or NULL

Constants

int Cache ID for Filemask cache

CACHE_FILEMASK