Esempio n. 1
0
 /**
  * Creates a new StatRefresher object.
  */
 public function __construct()
 {
     StatGeneratorFactory::init();
     $cache = WCF::getCache()->get('statTypes-' . PACKAGE_ID, 'byStatTypeID');
     foreach ($cache as $statTypeID => $row) {
         $statGenerator = StatGeneratorFactory::getByStatTypeID($statTypeID);
         $statGenerator->generate();
     }
     $sql = "TRUNCATE wcf" . WCF_N . "_session";
     WCF::getDB()->sendQuery($sql);
 }