Simple(r) caching abstraction layer, with a static publisher that will use that cache layer for storage

Installs: 6 768

Dependents: 0

Suggesters: 0

Security: 0

Stars: 14

Watchers: 1

Forks: 3

Open Issues: 10

Type:silverstripe-module

1.13.2 2018-11-23 02:52 UTC

README

Maintainer

Marcus Nyeholt <marcus (at) silverstripe (dot) com (dot) au>

Documentation

GitHub Wiki

Licensing

This module is licensed under the BSD license

Requirements

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