YII框架页面缓存操作如何实现长尾关键词优化?
- 内容介绍
- 文章标签
- 相关推荐
本文共计353个文字,预计阅读时间需要2分钟。
YII框架页面缓存操作示例:phpnamespace frontend\controllers;
use yii\web\Controller;
class IndexController extends Controller{ public function actionCache() { // 缓存页面内容 $this->view->registerMetaTag(['name'=> 'cache-control', 'content'=> 'max-age=3600']); return $this->render('index'); }}
本文实例讲述了YII框架页面缓存操作。
本文共计353个文字,预计阅读时间需要2分钟。
YII框架页面缓存操作示例:phpnamespace frontend\controllers;
use yii\web\Controller;
class IndexController extends Controller{ public function actionCache() { // 缓存页面内容 $this->view->registerMetaTag(['name'=> 'cache-control', 'content'=> 'max-age=3600']); return $this->render('index'); }}
本文实例讲述了YII框架页面缓存操作。

