Fixed race condition by removing temp cache->set call ...

... implemented randomiser for expiration of cached items instead