Fixed a cache bug, $.log bug