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

@@ -56,6 +56,12 @@ abstract class Controller_TemplateDefault_View extends Controller_TemplateDefaul
HTTP::redirect(strtolower($this->request->controller()));
}
// For some tables, are ID is base_64 encoded.
switch ($this->orm) {
case 'VOLUME': $object_name = base64_decode($object_name);
break;
}
$o = ORM::factory($this->orm,$object_name);
if (! $o->loaded()) {