/**
  * Store the url map cache if needed
  */
 public function __destruct()
 {
     if ($this->productionMode && !$this->cached) {
         $this->cache->set('routes', $this->routes);
     }
 }
Example #2
0
 /**
  * Store the url map cache if needed
  */
 protected function saveRoutesToCache()
 {
     if ($this->productionMode && !$this->cached && $this->enableRouteCache) {
         $this->cache->set('routes', Routes::toArray() + array('apiVersionMap' => $this->apiVersionMap));
     }
 }
Example #3
0
 /**
  * Store the url map cache if needed
  */
 public function __destruct()
 {
     if ($this->productionMode && !$this->cached) {
         $this->cache->set('routes', Routes::toArray() + array('apiVersionMap' => $this->apiVersionMap));
     }
 }
Example #4
0
 /**
  * Store the url map cache if needed
  */
 public function __destruct()
 {
     if ($this->productionMode && !$this->cached) {
         $this->cache->set('routes', Routes::toArray());
     }
 }