public function preload($locale = null) { $locale = $this->ensureLocale($locale); self::$cache = $this->all(0, 100500, $locale); // limit set to force loading from db, not calling preload() self::$cacheLocale = $locale; }
public function preload($locale = null) { if (!$locale) { $locale = waSystem::getInstance()->getLocale(); if (!$locale) { $locale = 'en_US'; } } self::$cache = $this->all(0, FALSE, $locale); self::$cacheLocale = $locale; }