added memcache+reduced logging to rewrites handling