removed console log, added missing line to cache "last data"