diff --git a/application/bootstrap.php b/application/bootstrap.php index 64a7cb9..101af67 100644 --- a/application/bootstrap.php +++ b/application/bootstrap.php @@ -130,7 +130,7 @@ Route::set('default/media', 'media(/)', 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', '((/(/)))', array('id' => '[a-zA-Z0-9_.]+')) +Route::set('default', '((/(/)))', array('id' => '[a-zA-Z0-9_.-]+')) ->defaults(array( 'controller' => 'welcome', 'action' => 'index', diff --git a/application/classes/controller/node.php b/application/classes/controller/node.php index 18a258a..77386ce 100644 --- a/application/classes/controller/node.php +++ b/application/classes/controller/node.php @@ -18,7 +18,7 @@ class Controller_NODE extends Controller_TemplateDefault { $no = ORM::factory('node'); $output = ''; - $output .= sprintf(_('This server has %s defined nodes.'),$no->cached(0)->count_all()); + $output .= sprintf(_('This server has %s defined nodes.'),$no->count_all()); $output .= '
'; $output .= '
'; diff --git a/application/classes/ormtsm.php b/application/classes/ormtsm.php index 0e41f70..597c582 100644 --- a/application/classes/ormtsm.php +++ b/application/classes/ormtsm.php @@ -25,12 +25,12 @@ class ORMTSM extends ORM { protected $_formated = FALSE; protected $_formats = array(); - public function __construct($id = NULL) { - parent::__construct($id); - + protected function _load_result($multiple = FALSE) { // We'll cache our query results if ($c = $this->_db->caching($this->_table_name)) - $this->cached($c); + $this->_db_builder->cached($c); + + return parent::_load_result($multiple); } /** diff --git a/application/config/database.php b/application/config/database.php index bcefd6a..fee1588 100644 --- a/application/config/database.php +++ b/application/config/database.php @@ -44,6 +44,7 @@ return array 'CLIENT_SCHEDULES' => 1200, 'CLIENTOPTS' => 1200, 'DEVCLASSES' => 1200, + 'DOMAINS' => 1200, 'EVENTS' => 1200, 'FILESPACES' => 1200, 'MGMTCLASSES' => 1200, @@ -51,7 +52,7 @@ return array 'OCCUPANCY' => 1200, 'SCHEMA' => 604800, 'STGPOOLS' => 1200, - 'SUMMARY' => 60, + 'SUMMARY' => 180, 'VOLUMES' => 1200, 'VOLUMEUSAGE' => 1200, ),