How to create cache for dynamic posts displayed by page using Django

2024-09-03 0

Its easy to create a cache for a post using the Django Cache feature. The problem is when the posts are displayed in the search results or a history page. We need in some way to delete the dynamic pages because, otherwise the post's data will be updated individually, but on list for navigation or in the search results will be still old data.

This video shows a way how to delete a post from all pages where is displayed.

Gist url https://gist.github.com/InterTuts/2107198f0a131e553640e0d65fed9bbf

Free Traffic Exchange