cache: Changed format of cache logs

Write log once per action