public static function getWordCount() { $cachedWordCount = FileCache::getWordCount(); if ($cachedWordCount) { return $cachedWordCount; } $result = Model::factory('Definition')->where('status', self::ST_ACTIVE)->count(); FileCache::putWordCount($result); return $result; }
public static function getWordCount() { $cachedWordCount = FileCache::getWordCount(); if ($cachedWordCount) { return $cachedWordCount; } $result = self::countByStatus(ST_ACTIVE); FileCache::putWordCount($result); return $result; }