Fixed some open gl stuff.
Added a redis cache.