silverstripe-australia / simplecache
Simple(r) caching abstraction layer, with a static publisher that will use that cache layer for storage
Installs: 6 769
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 1
Forks: 3
Open Issues: 10
Type:silverstripe-module
Requires
- silverstripe/queuedjobs: ~2.4
- dev-master / 1.13.x-dev
- 1.13.2
- 1.13.1
- 1.13.0
- 1.12.11
- 1.12.10
- 1.12.9
- 1.12.8
- 1.12.7
- 1.12.6
- 1.12.5
- 1.12.4
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.x-dev
- 1.11.5
- 1.11.4
- 1.11.3
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.x-dev
- 1.10.1
- 1.10.0
- 1.9.0
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.x-dev
This package is auto-updated.
Last update: 2024-11-29 04:42:47 UTC
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