if ($dochooser)
{
$controller = new Controller(Paths::init());
- $viewsvn->maincontrol =& $controller;
if (isset($viewsvn->in['rebuild']) AND $viewsvn->in['rebuild'] == 1 AND $viewsvn->get('debug') == true)
{
}
else
{
- $controller->cachev->exec_build();
+ if ($controller->cachev->exec_build())
+ {
+ unset($controller);
+ $controller = new Controller(Paths::init());
+ }
}
+
+ $viewsvn->maincontrol =& $controller;
}
$fetchtemplates[] = 'header';
* to make sure that it's up-to-date against the root repository.
*
* @access public
+ *
+ * @return bool Whether or not any part of the cache was (re-)built
*/
function exec_build()
{
if ($tree['info']['entry']['revision'] != $this->count)
{
$this->build($this->count);
+ return true;
}
}
+
+ return false;
}
// ###################################################################