Open hunterloftis opened 10 years ago
Frequently, you want to be able to force a full update on a normally-cached query. This PR allows you to select to cache or not with a boolean argument like:
function query(fresh, done) { this.find() .sort('-createdAt') .limit(n || 50) .cache(!fresh) .exec(done); }
Frequently, you want to be able to force a full update on a normally-cached query. This PR allows you to select to cache or not with a boolean argument like: