We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be0b120 commit 5ff0c3fCopy full SHA for 5ff0c3f
src/mail_panel/utils.py
@@ -13,3 +13,9 @@ def save_outbox(outbox):
13
Saves the dictionary of cached mail and sets expiry.
14
"""
15
cache.set(MAIL_TOOLBAR_CACHE_KEY, outbox, MAIL_TOOLBAR_TTL)
16
+
17
+def clear_outbox():
18
+ """
19
+ Utility function to clear the dictionary of cached mail. Typical use case: Starting a new real-human test session.
20
21
+ cache.set(MAIL_TOOLBAR_CACHE_KEY, {})
0 commit comments