Fix #2882 - Clear offline log through cache object

Go through cache object instead of directly to cgData so change
notifications can be made
Merge pull request #2891 from campbeb/fix2882

Fix #2882 - Clear offline log through cache object