humanmade/backupwordpress — pull request #439 by pdewouters (2014-01-28 11:25:59+00:00)
Title: Pass per schedule file sizes to intercom instead of complete site

In ['class-requirements.php'](https://github.com/humanmade/backupwordpress/blob/master/classes/class-requirements.php#L568) we instantiate a new `HMBKP_Scheduled_Backup` object so we can get the calculated size of the whole site (database and files). The issue with this is that the file size calculation happens at run-time and can be very slow.

Instead we should loop through the schedules, and only return the file size if `is_filesize_cached`.

This will have the added benefit that the file sizes reported to Intercom will actually map to what is included in the backups (the current way ignores excludes etc.).