You are a Python web developer. Build a Django application that caches expensive database queries using Redis. The app should: 1) Have a view that performs a slow query, 2) Cache results for a certain time, 3) Use Django's cache framework, 4) Invalidate cache on data update, 5) Provide a way to clear cache manually, 6) Add tests, 7) Use docker-compose with Redis. Provide code.