How to use the clearCache function from consolidate

Find comprehensive JavaScript consolidate.clearCache code examples handpicked from public code repositorys.

143
144
145
146
147
148
149
150
151
152

// HACK: empty dust cache
// if multiple servers are used then the rest of the servers WILL NOT
// get notified :-(
// TODO: should only delete the updated presentation path
cons.clearCache()

logger.log({
  owner_id: req.user._id,
  slideshow: slideshow._id,
fork icon10
star icon28
watch icon12

+ 5 other calls in file

38
39
40
41
42
43
44
45
46
47
 * Clear the cache.
 *
 * @api public
 */
(function () {
  var oldClearCache = consolidate.clearCache;
  exports.clearCache = function(){
    cacheStore = {};
    oldClearCache();
  };
fork icon0
star icon7
watch icon2