Skip to content

Instantly share code, notes, and snippets.

@kemo
Created August 3, 2011 15:56
Show Gist options
  • Save kemo/1122991 to your computer and use it in GitHub Desktop.
Save kemo/1122991 to your computer and use it in GitHub Desktop.
Kohana 3 Route Caching
<?php // bootstrap ...
// Include app routes
if ( ! Route::cache())
{
require APPPATH.'routes.php';
Route::cache(Kohana::$environment === Kohana::PRODUCTION);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment