MODPATH\cache\classes\kohana\cache\file.php [ 151 ]
146 $lifetime = $data->fgets();
147
148 // If we're at the EOF at this point, corrupted!
149 if ($data->eof())
150 {
151 throw new Cache_Exception(__METHOD__.' corrupted cache file!');
152 }
153
154 $cache = '';
155
156 while ($data->eof() === FALSE)
-
APPPATH\classes\common.php [ 1362 ] » Kohana_Cache_File->get(arguments)
0
string(30) "http://www.foxota.com/raiders/"
1
string(0) ""
1357 } 1358 $cache = Cache::instance('default'); 1359 //获取缓存 1360 if ($type == 'get') 1361 { 1362 return $cache->get($key, ''); 1363 } 1364 //设置缓存 1365 else if ($type == 'set' && mb_stripos($value, '没有找到符合条件的产品') === false) 1366 { 1367 return $cache->set($key, $value, 3600);
-
DOCROOT\plugins\article\classes\controller\pc\article.php [ 14 ] » Common::cache(arguments)
0
string(3) "get"
1
string(30) "http://www.foxota.com/raiders/"
9 public function before() 10 { 11 parent::before(); 12 //检查缓存 13 $this->_cache_key = Common::get_current_url(); 14 $html = Common::cache('get',$this->_cache_key); 15 $genpage = intval(Arr::get($_GET,'genpage')); 16 if(!empty($html) && empty($genpage)) 17 { 18 echo $html; 19 exit;
-
{PHP internal call} » Controller_Pc_Article->before()
-
SYSPATH\classes\kohana\request\client\internal.php [ 103 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Pc_Article(7)
{ private typeid => integer 4 private _cache_key => string(30) "http://www.foxota.com/raiders/" public _data => array(2) ( "cmsurl" => string(1) "/" "webname" => string(12) "狐狸旅行" ) public params => array(1) ( "" => string(1) "0" ) protected cmsurl => string(1) "/" public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(10) "raiders(/)" protected _regex => array(0) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(7) "article" "directory" => string(2) "pc" ) protected _route_regex => string(19) "#^raiders(?:/)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(7) "article" protected _action => string(5) "index" protected _uri => string(7) "raiders" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }98 } 99 100 // Create a new instance of the controller 101 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 102 103 $class->getMethod('before')->invoke($controller); 104 105 // Determine the action to use 106 $action = $request->action(); 107 108 // If the action doesn't exist, it's a 404
-
SYSPATH\classes\kohana\request\client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(10) "raiders(/)" protected _regex => array(0) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(7) "article" "directory" => string(2) "pc" ) protected _route_regex => string(19) "#^raiders(?:/)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(7) "article" protected _action => string(5) "index" protected _uri => string(7) "raiders" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH\classes\kohana\request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(10) "raiders(/)" protected _regex => array(0) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(7) "article" "directory" => string(2) "pc" ) protected _route_regex => string(19) "#^raiders(?:/)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(7) "article" protected _action => string(5) "index" protected _uri => string(7) "raiders" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1155 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1156 ':uri' => $this->_uri, 1157 )); 1158 } 1159 1160 return $this->_client->execute($this); 1161 } 1162 1163 /** 1164 * Returns whether this request is the initial request Kohana received. 1165 * Can be used to test for sub requests.
-
DOCROOT\index.php [ 141 ] » Kohana_Request->execute()
136 /** 137 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 138 * If no source is specified, the URI will be automatically detected. 139 */ 140 echo Request::factory() 141 ->execute() 142 ->send_headers(TRUE) 143 ->body(); 144 145 }