Exemplo n.º 1
0
 public static function getCachedRoutes()
 {
     if (!is_null(self::$cachedRoutes)) {
         return self::$cachedRoutes;
     }
     $cacheFile = sgConfiguration::get('settings.cache_dir') . '/sgRouteCache.cache';
     if (is_file($cacheFile) && ($contents = file_get_contents($cacheFile))) {
         self::$cachedRoutes = unserialize($contents);
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 public function execute()
 {
     sgGlue::stick(sgConfiguration::getRouting());
 }