/silverstripe-simplecache

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

Primary LanguagePHP

SilverStripe SimpleCache module

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.

Configuration