silverstripe-australia/simplecache
最新稳定版本:1.13.2
Composer 安装命令:
composer require silverstripe-australia/simplecache
包简介
Simple(r) caching abstraction layer, with a static publisher that will use that cache layer for storage
README 文档
README
Maintainer
Marcus Nyeholt <marcus (at) silverstripe (dot) com (dot) au>
Documentation
Licensing
This module is licensed under the BSD license
Requirements
- QueuedJobs module (http://github.com/nyeholt/silverstripe-queuedjobs)
Usage
- Define cache config - use the caches.conf.sample file as a guide
- Add the SimpleCachePublisher extension to a publishable data type and publish your page.
Controller:
extensions:
- SimpleCacheControllerExtension
SiteTree:
extensions:
- SimpleCachePublisherExtension
- Change .htaccess to point to simplecache/frontend-cache.php instead of framework/main.php
- Works in a similar way to static publisher, but uses a cache abstraction layer to allow for storing cached data in memcache or apc, or other cache platform.
On-request page caching
To use this module in a cache-on-request manner, please review the GitHub Wiki - in short
- create a {project}/caches.conf.php based on simplecache/caches.conf.php
- add appropriate _ss_environment.php configuration pointing at {project}/caches.conf.php
- update your .htaccess file with
RewriteRule .* simplecache/frontend-cache.php?url=%1&%{QUERY_STRING} [L] - ensure the top level directories exist for the configured cache locations
统计信息
- 总下载量: 6.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-11