Switch retreive total in cache data.
Switch monthly view to cached data.
Switch daily view to retreive data from cache table.
Switch ByReason view to cache data.
Switch ByMachine to cache data.
Fix dashboard server crashed when no data.