When importing visits on a day different from the visits day, invalidate the archived reports
invalidate reports if needed when building an archive requested via web
we do not want to use the API here since it needs admin access
accessing the sitesmanager api would fail in case one does not have admin access.
added an integration test to make sure the archiver report invalidation works as expected
it took me a long time to figure out where something was printed in the middle of any test...
fix tests as reports are invalidated now in some tests causing the site creation date to change causing archiving more dates
only invalidate reports for requested site ids for better performance
this should fix the remaining test as we clear the cache for all sites after invalidating an archived report all previously created site instances lost their data and need to be repopulated
Merge pull request #6879 from piwik/6850

When importing visits on a day different from the visit's day, invalidate the archived reports