afterExecuteRoute() public method

public afterExecuteRoute ( $dispatcher )
$dispatcher
示例#1
0
 public function afterExecuteRoute($dispatcher)
 {
     if (!($cacheKey = $this->cacheKey)) {
         return parent::afterExecuteRoute($dispatcher);
     }
     $cache = $this->getDI()->getApiCache();
     $cache->save($cacheKey, $this->response->getContent(), $this->expired);
     return parent::afterExecuteRoute($dispatcher);
 }