Created
August 3, 2011 15:56
-
-
Save kemo/1122991 to your computer and use it in GitHub Desktop.
Kohana 3 Route Caching
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 // 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