$cache
$cache :
__construct(\TriTan\Interfaces\Cache\ObjectCacheInterface $cache, \TriTan\Interfaces\Hooks\ActionFilterHookInterface $hook)
\TriTan\Interfaces\Cache\ObjectCacheInterface | $cache | |
\TriTan\Interfaces\Hooks\ActionFilterHookInterface | $hook |
update(object|\TriTan\Common\Posttype\Posttype $posttype) : boolean|null
Update user caches.
object|\TriTan\Common\Posttype\Posttype | $posttype | Posttype object to be cached. |
Returns false on failure.
clean(object|\TriTan\Common\Posttype\Posttype|integer $posttype)
Clean Posttype caches.
Uses clean_posttype_cache
action.
object|\TriTan\Common\Posttype\Posttype|integer | $posttype | Posttype object or id to be cleaned from the cache. |