Only set memcache if there's something to set

Found with appstats.