<?php defined('SYSPATH') or die('No direct script access.'); /** * Applies Request_Cache_Decorators to the Kohana_Request * class. Multiple cache decorators can be applied and are * executed in the order that they are applied. This code * can be moved to the application/bootstrap.php file. */ Request::$cache = Request_Cache::instance()->attach(Request_Cache_Decorator::instance('null'))->attach(Request_Cache_Decorator::instance('memcache')); // For now limit this to cli mode (need to find a good handle for this) if (Kohana::$is_cli) { define('SUPPRESS_REQUEST', TRUE); define('GEARMAN_WORKER_' . Request_Async_Gearman::$context, TRUE); }