mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Don't memoize cached_organic_links.
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
###############################################################################
|
||||
|
||||
from r2.models import *
|
||||
from r2.lib.memoize import memoize
|
||||
from r2.lib.normalized_hot import get_hot
|
||||
from r2.lib import count
|
||||
from r2.lib.utils import UniqueIterator, timeago
|
||||
@@ -31,7 +30,6 @@ from pylons import c
|
||||
import random
|
||||
from time import time
|
||||
|
||||
organic_lifetime = 5*60
|
||||
organic_max_length= 50
|
||||
|
||||
def keep_fresh_links(item):
|
||||
@@ -47,7 +45,6 @@ def keep_fresh_links(item):
|
||||
|
||||
return item.fresh
|
||||
|
||||
@memoize('cached_organic_links', time = organic_lifetime)
|
||||
def cached_organic_links(*sr_ids):
|
||||
sr_count = count.get_link_counts()
|
||||
#only use links from reddits that you're subscribed to
|
||||
|
||||
Reference in New Issue
Block a user