GithubHelp home page GithubHelp logo

marketo / silverstripe-simplecache Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nyeholt/silverstripe-simplecache

0.0 1.0 0.0 126 KB

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

PHP 98.16% Scheme 1.84%

silverstripe-simplecache's Introduction

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.

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

silverstripe-simplecache's People

Contributors

nyeholt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.