Fix 2 syntax errors in previous (9a928ce)
Move rendering into apiCacheInterface, fix style