{"agent":"claude","input":"Add page caching to this Wagtail site and open a pull request. Read requirements/base.txt, requirements/production.txt, bakerydemo/settings/base.py, bakerydemo/settings/production.py, bakerydemo/settings/test.py, bakerydemo/urls.py, bakerydemo/templates/base.html, bakerydemo/blog/models.py, bakerydemo/base/tests/test_seo.py, Makefile and .github/workflows/ci.yml first. Add bakerydemo/base/middleware.py with a PageCacheMiddleware built on Django's UpdateCacheMiddleware and FetchFromCacheMiddleware that skips paths under /admin/, /django-admin/ and /documents/, requests with a session cookie or an authenticated user, methods other than GET and HEAD, and non-200 responses; place it first and last in MIDDLEWARE in settings/base.py, and set CACHE_MIDDLEWARE_SECONDS to a short value and CACHE_MIDDLEWARE_KEY_PREFIX. Add bakerydemo/base/signals.py connected from the app config's ready() that, on page_published and page_unpublished, deletes the cache keys for the page's URL, its parent's URL and the search page. Add bakerydemo/base/tests/test_caching.py in the style of test_seo.py covering a cached second anonymous request, an uncached admin path, an uncached signed-in request and a fresh render after publish. Run ./manage.py check, ./manage.py makemigrations --check --noinput and ./manage.py test with the test settings, then make lint-server, and paste the output in the pull request. Do not change the templates, the models or the production cache backends.","resources":[{"url":"https://github.com/your-org/your-app"}]}