diff --git a/nullboard.html b/nullboard.html
index 58e89b5..6be35c6 100644
--- a/nullboard.html
+++ b/nullboard.html
@@ -1283,8 +1283,7 @@
{
this.databases.push(arguments[i]);
}
- this.deltas = new Deltas(this.primary());
- this.cachedb = new NamespacedDatabase("cache", new Local()),
+ this.deltas = new Deltas(this.cache());
this.scheduleSync();
this.syncCacheWithPrimary();
}
@@ -1310,7 +1309,9 @@
cache()
{
- return this.cachedb;
+ if (this.databases.length > 1)
+ return this.databases[1];
+ return this.primary();
}
primary()
@@ -1320,7 +1321,7 @@
replicas()
{
- return [this.cache()].concat(this.databases.slice(1));
+ return this.databases.slice(1);
}
scheduleSync()