           unsetModifier["activities.#{idToDelete}"] = 1
           unsetModifier["overview.#{overviewIndexToDelete}"] = 1
 
-
-          log ">>>", unsetModifier
-
           cache.update
             $unset : unsetModifier
             $set   : isFull : no
           , ->
-            log "activity removed from cache!"
-
-  # update:do ->
-  #   updateQueue = []
-  #   update =(rest..., callback)->
-
-  #     updateQueue.push =>
-  #       jraphical.Module::update.apply @, rest.concat =>
-  #         callback arguments
-  #         updateQueue.next()
-
-  #     unless updateQueue.length
-  #       daisy updateQueue
+            log "activity removed from cache!", Object.keys(cache.activities).length
+
+
+  printOverview = (overview)->
+    # TEST - better not to delete this
+    # logs all items' dates
+
+    console.log item.createdAt[0] for item in overview when item
+
+  printBatches = (overview2d)->
+    # TEST - better not to delete this
+    # logs item dates in batches
+
+    for ov,i in overview2d
+      console.log "batch #{i}:\n"
+      printOverview ov

module.exports = class JActivityCache extends jraphical.Module

  {daisy}   = require 'bongo'
  # CActivity = require './index'

  typesToBeCached = [
    'CStatusActivity'


          cb = \
            if eternity
              JActivityCache.createCacheFromEarliestTo.bind JActivityCache, yes
            else
              ->

