code cleanup, enable memcache and apc