PHP Class Minify_Cache_Null, minify

If this is used, Minify will not use a cache and, for each 200 response, will need to recombine files, minify and encode the output.
Inheritance: implements Minify_CacheInterface
Show file Open project: mrclay/minify

Public Methods

Method Description
display ( string $id ) Send the cached content to output
fetch ( string $id ) : string Fetch the cached content
getSize ( string $id ) : integer Get the size of a cache entry
isValid ( string $id, integer $srcMtime ) : boolean Does a valid cache entry exist?
store ( string $id, string $data ) : boolean Write data to cache.

Method Details

display() public method

Send the cached content to output
public display ( string $id )
$id string cache id (e.g. a filename)

fetch() public method

Fetch the cached content
public fetch ( string $id ) : string
$id string cache id (e.g. a filename)
return string

getSize() public method

Get the size of a cache entry
public getSize ( string $id ) : integer
$id string cache id (e.g. a filename)
return integer size in bytes

isValid() public method

Does a valid cache entry exist?
public isValid ( string $id, integer $srcMtime ) : boolean
$id string cache id (e.g. a filename)
$srcMtime integer mtime of the original source file(s)
return boolean exists

store() public method

Write data to cache.
public store ( string $id, string $data ) : boolean
$id string cache id (e.g. a filename)
$data string
return boolean success