Added auto cache clean option

When resource is updated or deleted cache should be removed. Added option `autoCleanCache` which by default is `false`.