Skip to content

Commit 8b6b446

Browse files
committed
fix: update context chat constants
Signed-off-by: Edward Ly <contact@edward.ly>
1 parent d3c6cf9 commit 8b6b446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ContextChat/ContextChatProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
*/
3333
class ContextChatProvider implements IContentProvider, IEventListener {
3434

35-
public const CONTEXT_CHAT_MESSAGE_MAX_AGE = 60 * 60 * 24 * 365;
35+
public const CONTEXT_CHAT_MESSAGE_MAX_AGE = 31557600; // 60 * 60 * 24 * 365.25 (1 year)
3636
public const CONTEXT_CHAT_IMPORT_MAX_ITEMS = 1000;
37-
public const CONTEXT_CHAT_JOB_INTERVAL = 60 * 5;
37+
public const CONTEXT_CHAT_JOB_INTERVAL = 300; // 60 * 5 (5 minutes)
3838

3939
public function __construct(
4040
private TaskService $taskService,

0 commit comments

Comments
 (0)