tecnodesignc/core-module
最新稳定版本:3.0.0
Composer 安装命令:
composer require tecnodesignc/core-module
包简介
The core module for EncoreCMS 3.0 This is required for every install
关键字:
README 文档
README
#Core Modules
To activate the Cache System
Modify
// config/app.php 'providers' => [ ... Modules\Core\Pagecache\ResponseCache\ResponseCacheServiceProvider::class, ];
This package also comes with a facade.
// config/app.php 'aliases' => [ ... 'ResponseCache' => Modules\Core\Pagecache\ResponseCache::class, ];
You can publish the config file with:
php artisan vendor:publish --provider="Modules\Core\Pagecache\ResponseCache\ResponseCacheServiceProvider"
Command available to clear cache
php artisan pagecache:clear
URL rewriting
In order to serve the static files directly once they've been cached, you need to properly configure your web server to check for those static files.
-
For nginx:
Update your
locationblock'stry_filesdirective to include a check in thepage-cachedirectory:location / { try_files $uri $uri/ /page-cache/$uri.html /index.php?$query_string; }
-
For apache:
Open
public/.htaccessand add the following before the block labeledHandle Front Controller:# Serve Cached Page If Available... RewriteCond %{REQUEST_URI} ^/?$ RewriteCond %{DOCUMENT_ROOT}/page-cache/pc__index__pc.html -f RewriteRule .? page-cache/pc__index__pc.html [L] RewriteCond %{DOCUMENT_ROOT}/page-cache%{REQUEST_URI}%{QUERY_STRING}.html -f RewriteRule . page-cache%{REQUEST_URI}.html [L]
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-22