Some more performance improvements and caching

This commit is contained in:
Deon George
2012-12-06 14:50:06 +11:00
parent 74b3bfb408
commit 528a83a4fd
38 changed files with 303 additions and 103 deletions

View File

@@ -98,7 +98,7 @@ Kohana::init(array(
/**
* Attach the file write to logging. Multiple writers are supported.
*/
Kohana::$log->attach(new Log_File(APPPATH.'logs'));
Kohana::$log->attach(new Log_File(APPPATH.'logs'),LOG::INFO);
/**
* Attach a file reader to config. Multiple readers are supported.
@@ -146,7 +146,7 @@ Route::set('default/media', 'media(/<file>)', array('file' => '.+'))
* Set the routes. Each route must have a minimum of a name, a URI and a set of
* defaults for the URI.
*/
Route::set('default', '(<controller>(/<action>(/<id>)))', array('id'=>'[a-zA-Z0-9_.-]+'))
Route::set('default', '(<controller>(/<action>(/<id>)))', array('id'=>'[a-zA-Z0-9_.-=]+'))
->defaults(array(
'controller' => 'welcome',
'action' => 'index',