Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ce5c49e

Browse files
author
Clinton D'Annolfo
committed
Fixed story cache refresh time
1 parent 2599715 commit ce5c49e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/server/database/feed-updater.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import type { HnDatabase } from './database';
77
const logger = debug('app:cache-warmer');
88
logger.log = console.log.bind(console);
99

10-
const TWO_MINUTES = 1000 * 60 * 15;
10+
const TWO_MINUTES = 1000 * 60 * 2;
1111

1212
/**
1313
* Updates the news feed story orders in memory
1414
*/
1515
async function updateFeed(db: HnDatabase, cache: HnCache, feedType: FeedType): Promise<void> {
16-
setTimeout(() => updateFeed(db, cache, feedType), TWO_MINUTES,feedType);
16+
setTimeout(() => updateFeed(db, cache, feedType), TWO_MINUTES);
1717

1818
try {
1919
const feed = await db.getFeed(feedType);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /