Memcache delay solved (for now)

For some reason the memcache often failed the update and did not return
the most recent changes in db. To handle this I implemented a
workaround, but it should be investigated if another db structure would
allow faster db reads and writes and solve the problem without
workaround.