Update the file caching app

- Add view to list available caches.
- Add links to view and purge caches.
- Add permissions.
- Add events.
- Add purge task.
- Remove document image clear link and view.
  This is now handled by the file caching app.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-07-25 02:22:57 -04:00
parent 9315776926
commit 88bc29e4d7
19 changed files with 309 additions and 56 deletions

View File

@@ -0,0 +1,20 @@
from __future__ import unicode_literals
from django.conf.urls import url
from .views import CacheListView, CachePurgeView
urlpatterns = [
url(
regex=r'^caches/$',
name='cache_list', view=CacheListView.as_view()
),
url(
regex=r'^caches/(?P<cache_id>\d+)/purge/$',
name='cache_purge', view=CachePurgeView.as_view()
),
url(
regex=r'^caches/multiple/purge/$', name='cache_multiple_purge',
view=CachePurgeView.as_view()
),
]