mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-12-04 14:46:24 -05:00
Remove some of the cacheing that was just added
This commit is contained in:
parent
6a6bf32646
commit
bc5e9e091d
@ -153,22 +153,18 @@ def timeline(request, timeline='home', timeline_name='Home', max_id=None, since_
|
|||||||
'prev': prev, 'next': next})
|
'prev': prev, 'next': next})
|
||||||
|
|
||||||
@br_login_required
|
@br_login_required
|
||||||
@cache_page(60)
|
|
||||||
def home(request, next=None, prev=None):
|
def home(request, next=None, prev=None):
|
||||||
return timeline(request, 'home', 'Home', max_id=next, since_id=prev)
|
return timeline(request, 'home', 'Home', max_id=next, since_id=prev)
|
||||||
|
|
||||||
@br_login_required
|
@br_login_required
|
||||||
@cache_page(60)
|
|
||||||
def local(request, next=None, prev=None):
|
def local(request, next=None, prev=None):
|
||||||
return timeline(request, 'local', 'Local', max_id=next, since_id=prev)
|
return timeline(request, 'local', 'Local', max_id=next, since_id=prev)
|
||||||
|
|
||||||
@br_login_required
|
@br_login_required
|
||||||
@cache_page(60)
|
|
||||||
def fed(request, next=None, prev=None):
|
def fed(request, next=None, prev=None):
|
||||||
return timeline(request, 'public', 'Federated', max_id=next, since_id=prev)
|
return timeline(request, 'public', 'Federated', max_id=next, since_id=prev)
|
||||||
|
|
||||||
@br_login_required
|
@br_login_required
|
||||||
@cache_page(60*5)
|
|
||||||
def tag(request, tag):
|
def tag(request, tag):
|
||||||
try:
|
try:
|
||||||
account, mastodon = get_usercontext(request)
|
account, mastodon = get_usercontext(request)
|
||||||
@ -378,7 +374,6 @@ def note(request, next=None, prev=None):
|
|||||||
'prev': prev, 'next': next})
|
'prev': prev, 'next': next})
|
||||||
|
|
||||||
@br_login_required
|
@br_login_required
|
||||||
@cache_page(60)
|
|
||||||
def thread(request, id):
|
def thread(request, id):
|
||||||
account, mastodon = get_usercontext(request)
|
account, mastodon = get_usercontext(request)
|
||||||
context = mastodon.status_context(id)
|
context = mastodon.status_context(id)
|
||||||
@ -391,7 +386,6 @@ def thread(request, id):
|
|||||||
'preferences': account.preferences})
|
'preferences': account.preferences})
|
||||||
|
|
||||||
@br_login_required
|
@br_login_required
|
||||||
@cache_page(60*5)
|
|
||||||
def user(request, username, prev=None, next=None):
|
def user(request, username, prev=None, next=None):
|
||||||
try:
|
try:
|
||||||
account, mastodon = get_usercontext(request)
|
account, mastodon = get_usercontext(request)
|
||||||
|
Loading…
Reference in New Issue
Block a user