假设没有字节缓存.
将my_func前A和B都包括在内,或之后进行解析?
$x=my_func();
//a.php and b.php are **very** heavy scripts
include ('a.php');
include ('b.php');
//my_func makes the browser use it's cached version of the page.
function my_func(){
//send caching headers
//header(....);
exit;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
254 次 |
| 最近记录: |