\TriTan\Common\PosttypePosttypeCache

Summary

Methods
Properties
Constants
__construct()
update()
clean()
$cache
$hook
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$cache

$cache : 

Type

$hook

$hook : 

Type

Methods

update()

update(object|\TriTan\Common\Posttype\Posttype  $posttype) : boolean|null

Update user caches.

Parameters

object|\TriTan\Common\Posttype\Posttype $posttype

Posttype object to be cached.

Returns

boolean|null —

Returns false on failure.

clean()

clean(object|\TriTan\Common\Posttype\Posttype|integer  $posttype) 

Clean Posttype caches.

Uses clean_posttype_cache action.

Parameters

object|\TriTan\Common\Posttype\Posttype|integer $posttype

Posttype object or id to be cleaned from the cache.