Add MinimalController request begin hook.

This commit is contained in:
Max Goodman
2013-05-10 16:40:15 -07:00
parent fb9a4f5b47
commit b85db4f99f

View File

@@ -749,6 +749,8 @@ class MinimalController(BaseController):
g.stats.count_string('user_agents', request.user_agent)
hooks.get_hook("reddit.request.minimal_begin").call()
def can_use_pagecache(self):
handler = self._get_action_handler()
policy = getattr(handler, "pagecache_policy",