Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Last active August 29, 2015 14:02
Show Gist options
  • Save bastianallgeier/0305aa192a1478833258 to your computer and use it in GitHub Desktop.
Save bastianallgeier/0305aa192a1478833258 to your computer and use it in GitHub Desktop.
Cache setup for Kirby
<?php
// apc driver setup
// requires the php apc extension
c::set('cache', true);
c::set('cache.driver', 'apc');
<?php
// default setup, uses the file cache
// files are being stored in site/cache
c::set('cache', true);
<?php
// memcached driver setup
// requires the php memcached extension and a running memcached server
c::set('cache', true);
c::set('cache.driver', 'memcached');
c::set('cache.options', array(
'host' => 'localhost',
'port' => 11211
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment