Fix #51. Invalidate cache when unit state is set to OBSOLETE