Last active
August 29, 2015 14:02
-
-
Save bastianallgeier/0305aa192a1478833258 to your computer and use it in GitHub Desktop.
Cache setup for Kirby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// apc driver setup | |
// requires the php apc extension | |
c::set('cache', true); | |
c::set('cache.driver', 'apc'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// default setup, uses the file cache | |
// files are being stored in site/cache | |
c::set('cache', true); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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