vdemedes/mongorito — Issue #2: create method seems to be misbehaving without cache :)
Author: MaxPresman
Created: 2012-02-24 05:54:26+00:00
State: open

line 320..

Cache.delByTag that.collection, ->
if fields._id
that.update callback, yes
else
that.create callback, yes

seems to be not working without cache..

DEBUG: TypeError: Cannot call method 'delByTag' of undefined
at /home/blogy/node_modules/mongorito/lib/mongorito.js:432:20
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:245:13
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:105:25
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:242:17
at /home/blogy/node_modules/mongorito/lib/mongorito.js:428:16
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:238:13
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:97:13
at Array.forEach (native)
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:26:24
at /home/blogy/node_modules/mongorito/node_modules/async/lib/async.js:96:9

commenting out the caching line .. seems to work!