Fixed error with the spam cache and API call counting