本文整理匯總了PHP中vB_Cache::actions方法的典型用法代碼示例。如果您正苦於以下問題:PHP vB_Cache::actions方法的具體用法?PHP vB_Cache::actions怎麽用?PHP vB_Cache::actions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vB_Cache
的用法示例。
在下文中一共展示了vB_Cache::actions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: logCacheActivity
/**
* If cache logging is enabled this function writes the activity for this page to the database.
*
**/
protected function logCacheActivity()
{
/**randomkey float , cacheid varbinary(64), cacheType SMALLINT, time INT(10),
writes SMALLINT, hits SMALLINT, misses SMALLINT, rereads SMALLINT,
remiss SMALLINT, clears SMALLINT)**/
$assertor = vB::getDbAssertor();
foreach (self::$actions as $type => $actions) {
if (!empty($actions)) {
$assertor->assertQuery('vBInstall:cachelog', array(vB_dB_Query::TYPE_KEY => vB_dB_Query::QUERY_MULTIPLEINSERT, vB_dB_Query::FIELDS_KEY => array('cacheid', 'randomkey', 'cachetype', 'writes', 'misses', 'hits', 'rereads', 'remiss', 'clears', 'time', 'size', 'stacktrace'), vB_dB_Query::VALUES_KEY => $actions));
}
}
self::$actions = array(self::CACHE_STD => array(), self::CACHE_FAST => array(), self::CACHE_LARGE => array(), 4 => array());
}