I wonder why I didn't use cacheObject at the end of insert() instead of addToCache, that might actually be the best way to fix it.