if (!isset($this->memcache['revs']["$revision"]))
{
- $this->memcache['revs']["$revision"] = $this->controller->registry->db->query_first("SELECT * FROM {$this->hash}_revs " . ($revision == 0 ? " ORDER BY revision DESC LIMIT 1" : "WHERE revision = $revision"));
+ $this->memcache['revs']["$revision"] = $this->controller->registry->db->query_first("SELECT * FROM c{$this->hash}_revs " . ($revision == 0 ? " ORDER BY revision DESC LIMIT 1" : "WHERE revision = $revision"));
$this->memcache['revs']["$revision"]['files'] = unserialize($this->memcache['revs']["$revision"]['files']);
}
$node = $this->controller->path;
if (!isset($this->memcache['nodes']["$node"]))
{
- $result = $this->controller->registry->db->query_first("SELECT * FROM {$this->hash}_nodes WHERE name = '" . $this->controller->registry->escape($node) . "'");
+ $result = $this->controller->registry->db->query_first("SELECT * FROM c{$this->hash}_nodes WHERE name = '" . $this->controller->registry->escape($node) . "'");
if ($result == false)
{
return false;
*/
function exec_build()
{
- $result = $this->controller->registry->db->query_first("SELECT MAX(revision) AS max FROM {$this->hash}_revs");
+ $result = $this->controller->registry->db->query_first("SELECT MAX(revision) AS max FROM c{$this->hash}_revs");
$this->count = $result['max'];
// time to go from the start
// insert _revs
$this->controller->registry->db->query("
- REPLACE INTO {$this->hash}_revs
+ REPLACE INTO c{$this->hash}_revs
(revision, author, dateline, message, files)
VALUES
" . implode(",\n", $inserts['revs'])
// insert _nodes
$this->controller->registry->db->query("
- REPLACE INTO {$this->hash}_nodes
+ REPLACE INTO c{$this->hash}_nodes
(name, node, revision, history, properties)
VALUES
" . implode(",\n", $inserts['nodes'])
{
$viewsvn->debug("creating new cacheV: $repos");
$db->query("
- CREATE TABLE {$hash}_revs
+ CREATE TABLE c{$hash}_revs
(
revision INT(20) UNSIGNED NOT NULL DEFAULT 0,
author VARCHAR(255) NOT NULL DEFAULT '',
);
$db->query("
- CREATE TABLE {$hash}_nodes
+ CREATE TABLE c{$hash}_nodes
(
name VARCHAR(255) NOT NULL DEFAULT '',
node VARCHAR(50) NOT NULL DEFAULT '',