fixing gen_caches lookup for signals handling
Merge pull request #1501 from dimagi/cache_checkpoint

fixing gen_caches lookup for signals handling