djangosnippets.org: Latest snippets posted by asdatorhttp://djangosnippets.org/users/asdator/2016-10-15T04:16:42.119918-05:00asdatorCachable Django Paginator
2016-10-15T04:16:42.119918-05:00asdatorhttp://djangosnippets.org/snippets/10591/<p>This is a modificated version of <code>CachedPaginator</code> by <strong>daniellindsley</strong> <a href="https://djangosnippets.org/snippets/1173/">https://djangosnippets.org/snippets/1173/</a> (<a href="https://web.archive.org/web/20150927100427/https://djangosnippets.org/snippets/1173/">web-arhive-link</a>). Which not only cache <code>result_objects</code>, but the <code>total_count</code> of the <code>queryset</code> too (usefull if computating the count is an expensive operation too).</p>
Freely redistributable