Beispiel #1
0
 /** 
  * 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());
 }