code refactoring of get miners code, memcache enabled