Group list API endpoint has moved.

Allow infinite group cache age.

Thanks @TargetZ3R0

(cherry-picked from bdb3ab366fba2cd7e1ae799b5b75e46c63d95bf3)
This commit is contained in:
Adarnof 2018-03-22 18:05:45 -04:00
parent c69b41738b
commit 69a686a98a

View File

@ -8,7 +8,7 @@ from hashlib import md5
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
GROUP_CACHE_MAX_AGE = int(getattr(settings, 'DISCOURSE_GROUP_CACHE_MAX_AGE', 2 * 60 * 60)) # default 2 hours GROUP_CACHE_MAX_AGE = getattr(settings, 'DISCOURSE_GROUP_CACHE_MAX_AGE', 2 * 60 * 60) # default 2 hours
class DiscourseError(Exception): class DiscourseError(Exception):
@ -24,7 +24,7 @@ class DiscourseError(Exception):
ENDPOINTS = { ENDPOINTS = {
'groups': { 'groups': {
'list': { 'list': {
'path': "/admin/groups.json", 'path': "/groups/search.json",
'method': 'get', 'method': 'get',
'args': { 'args': {
'required': [], 'required': [],