New write subscriber

Added a subscriber to log cache sets and cache clears