Fixed how debug caching works.