dont precompute top_links page temporarily

This commit is contained in:
spez
2009-07-27 16:15:16 -07:00
parent ac263fba6f
commit 1fdf8cdbb3
2 changed files with 3 additions and 3 deletions

View File

@@ -303,7 +303,7 @@ def new_link(link):
results = all_queries(get_links, sr, ('hot', 'new', 'old'), ['all'])
results.extend(all_queries(get_links, sr, ('top', 'controversial'), db_times.keys()))
results.append(get_submitted(author, 'new', 'all'))
results.append(get_links(sr, 'toplinks', 'all'))
#results.append(get_links(sr, 'toplinks', 'all'))
if link._deleted:
add_queries(results, delete_item = link)
@@ -334,7 +334,7 @@ def new_vote(vote):
sr = item.subreddit_slow
results = all_queries(get_links, sr, ('hot', 'new'), ['all'])
results.extend(all_queries(get_links, sr, ('top', 'controversial'), db_times.keys()))
results.append(get_links(sr, 'toplinks', 'all'))
#results.append(get_links(sr, 'toplinks', 'all'))
add_queries(results)
#must update both because we don't know if it's a changed vote

View File

@@ -360,7 +360,7 @@ ${unsafe(txt)}
post_site: "${c.site.name if not c.default_sr else ''}",
/* are we in an iframe */
cnameframe: ${"true" if (c.cname and not c.authorized_cname) else "false"},
/* this page's referer" */
/* this page's referer */
referer: "${request.referer or ""}",
/* the user's voting hash */
modhash: ${"'%s'" % c.modhash or "false"},