get a resource from cache
static
mixed
get
(string $a, [string $b = ''], [string $c = 'read'])
-
string
$a: resource class
-
string
$b: resource identifier
-
string
$c: 'read' the content or return modification time 'mtime'
get current cache folder
static
string
getdir
()
remove a resource from cache
static
boolean
purge
(string $a, [string $b = ''])
-
string
$a: resource class
-
string
$b: resource identifier
put content to cache
static
boolean
put
(string $a, [string $b = ''], [array $d = ''])
-
string
$a: resource class
-
string
$b: resource identifier
-
array
$d: input stream
set a folder for cache. obviously it has to be writeable...
static
boolean
setdir
(string $a)
calculate forum statistics and cache it
static
array
statistic
(string $a, [string $b = ''])
-
string
$a: select section: 'post' or 'user'
-
string
$b: options: 'rebuild'
fetches topic data from cache pool
if multiple are requested, they are precached *without* returning (use '*' for all) only single topic requests are returned from cache!
static
mixed
topic
(integer $a, [string $b = ''])
-
integer
$a: topic id, single or multiple separated by comma
-
string
$b: options: 'rebuild'
make changes on topic cache without rebuilding it
static
boolean
topic_delta
( &$cache, string $op, array $data, array $cache)
-
array
$cache: resource array from XFCache::topic()
-
string
$op: operations: add_reply, remove_reply, change_lock, change_attribute, change_rate, change_user
-
array
$data: input data stream
-
&$cache