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'
fetch last postid from topic
static
integer
lastpost
( &$a, [boolean $b = false], array $a)
-
array
$a: resource array from XFCache::topic()
-
boolean
$b: if false, skips unapproved postings
-
&$a
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 directory 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: 'force_recount'
fetches topic data from cache pool
static
mixed
topic
(integer $a, [string $b = ''])
-
integer
$a: topic id, single or multiple separated by comma
-
string
$b: options: 'force_recount' or 'purge'