Correctly clear cache wrt transactions
Add delete in transaction