checking if cache backend
refactory m2m auditing