Truncate .cache.json when opening file descriptor (#717)
Truncate .cache.json when opening file descriptor (#717)

If os.O_TRUNC bit mask is not applied, then for some mysterious reason
the file will not be written to disk, even though there is no error to
be found.
RedHatInsights/insights-core,RedHatInsights/insights-core