                         failure(error)
                         return
                     }
-                    log.warning("Caching minmax aggregates for \(key)")
+                    log.warning("Caching minmax aggregates for \(key) ")
                     success(MCAggregateArray(aggregates: aggregates), .Date(self.getCacheExpiry(period)))
                 }
             }
         }, completion: {object, isLoadedFromCache, error in
             log.warning("Cache minmax result \(key) \(isLoadedFromCache)")
             if let aggArray = object {
+                log.warning("Cache minmax result \(key) size \(aggArray.aggregates.count)")
                 completion(aggArray.aggregates.map { finalize(.DiscreteMin, $0) }, aggArray.aggregates.map { finalize(.DiscreteMax, $0) }, error)
             } else {
                 completion([], [], error)

                    }

                    if let aggArray = self.aggregateCache[key] {
                        completion([aggArray.aggregates.map { return finalizeAgg(.DiscreteMax, $0).numeralValue! },
                                    aggArray.aggregates.map { return finalizeAgg(.DiscreteMin, $0).numeralValue! }])
                    }
                }
            }

            key = getPeriodCacheKey(keyPrefix, aggOp: .DiscreteAverage, period: period)
        }

        if let aggArray = aggregateCache[key] {
            log.warning("Cache hit for \(key) (size \(aggArray.aggregates.count))")
        } else {
            log.warning("Cache miss for \(key)")
        }
