Warming Django's per-view cache -


django 1.11.4

could tell me whether there tool warm django's per-view cache?

i planning this

urlpatterns = [     url(r'^$', cache_page(60 * 60 * 24)(searchengineview.as_view()),         name='form'), ] 

the pages static. need check whether user has permission. why decided use django's per-view cache.

class framelistview(loginrequiredmixin,                     permissionrequiredmixin,                     listview):     permission_required = 'general.can_observe'     ... 

end every day i'd clear existing cache , warm again pages. there couple of thousands of such pages. if cache warm, page render in 50 ms. ok. no varnish necessary here.

but without warming whole idea useless.

could give me piece of advice here: how warm cache.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -