Tests for cache
Cron refactoring and tests
Cron refactoring and tests