Skip to content

memcache

David Spreekmeester edited this page Dec 2, 2014 · 1 revision

Setting a non-default Memcache host.

By default, Garp and Zend assume you're running Memcache on localhost. Create an app-specific pre-bootstrap file: application/configs/init.php.

If it exists, this will be loaded by garp/application/init.php.

Now set the Memcache host in application/configs/init.php:

<?php

define('MEMCACHE_HOST', 'my-awesome-memcache-host-name-or-ip');
Clone this wiki locally