" page Cache "
1. can the fragment cache be implemented
A: This is not possible because the layout file has not been cached
2. can we have enough layout for page caching ?
A: Theoretically not able, the view is loaded first, the layout after loading through time stamp can prove
User Access control for page caching
F ilters
AccessControl
Accessrules
<?php/** * Product Controller */class Goodscontroller extends Controller { /* * To implement page caching via user access control filtering * Filter: * AccessControl is a method filter * Array () is a class filter */ function Filters () { return Array ( //') AccessControl ', method filter //class filter implements the overall page cache coutputcache.php //page cache only for detail array ( ' System.web.widgets.COutputCache + Detail ', ' duration ' =>1800, ' VaryByParam ' =>array (' id '), ); }
Yii Page Cache