mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-26 02:49:16 -04:00
add clear cache platform admin page
a form that allows you to clear entries from the cache for all of either users, services or templates. It'll tell you the largest amount of keys deleted, since there are multiple keys associated with each model.
This commit is contained in:
@@ -1281,3 +1281,15 @@ class TemplateAndFoldersSelectionForm(Form):
|
||||
required_for_ops('add-new-template'),
|
||||
Optional(),
|
||||
], required_message='Select the type of template you want to add')
|
||||
|
||||
|
||||
class ClearCacheForm(StripWhitespaceForm):
|
||||
model_type = RadioField(
|
||||
'What do you want to clear today',
|
||||
choices=[
|
||||
('user', 'Users'),
|
||||
('service', 'Services'),
|
||||
('template', 'Templates')
|
||||
],
|
||||
validators=[DataRequired()]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user