Answer the question
In order to leave comments, you need to log in
TestCase, Cache or how to write a test to check the cache?
The situation is as follows:
I made a website, I write tests for it. News appears on the main page, the main page is cached in templates
{% load cache %}{% cache 20 index %}......{% endcache %}
Answer the question
In order to leave comments, you need to log in
There is a suspicion that this is a task from Yandex.Practice. If suddenly someone else is relevant, then in the next task they recommend doing this by deleting the entry: Delete the entry, check the availability of the entry on the page (from the cache), clear the cache and make sure that the entry has disappeared.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question