Added cache_purge module support, small fixes