Browse Source

remove entity DB cache

it's not having an effect for what I do `query('World.*')`
add later when needed & tested
Simon Oberhammer 12 years ago
parent
commit
f36d48ecfc
1 changed files with 1 additions and 5 deletions
  1. 1 5
      ringojs-convinient/app/models.js

+ 1 - 5
ringojs-convinient/app/models.js

@@ -14,13 +14,9 @@ var connectionPool = module.singleton("connectionPool", function() {
     });
 });
 var store = exports.store = new Store(connectionPool);
-var entityCache = module.singleton("entityCache", function() {
-    return new Cache(10000);
-});
 var queryCache = module.singleton("queryCache", function() {
     return new Cache(10000);
 });
-store.setEntityCache(entityCache);
 store.setQueryCache(queryCache);
 
 // define entities in DB
@@ -40,4 +36,4 @@ var Fortune = exports.Fortune = store.defineEntity('Fortune', {
 
 Fortune.sort = function(a, b) {
  return (a.message < b.message) ? -1 : (a.message > b.message) ? 1 : 0;
-};
+};