immediate invalidate local near caches (fixes issue #2163)
tiny cleanup
check if near cache enabled
Merge pull request #2201 from ahmetmircik/fix/2163/maintenance

Fixes #2163 : Immediate invalidate local near caches.