Skip to content

Realtime refreshing implementation#4

Open
edgeinfinity1 wants to merge 4 commits into
afrux:mainfrom
edgeinfinity1:main
Open

Realtime refreshing implementation#4
edgeinfinity1 wants to merge 4 commits into
afrux:mainfrom
edgeinfinity1:main

Conversation

@edgeinfinity1
Copy link
Copy Markdown

I'm sorry for its rather roughly written, since I'm not quite familiar with flarum. The refreshing interval is hardcoded to 180s, and last online time to 10min. The cache seemingly not working for refreshing too.
Please consider carefully before merging. Better add some settings.

	new file:   src/Api/Controller/ListOnlineUsersController.php
@edgeinfinity1
Copy link
Copy Markdown
Author

Update:

  • Realtime refreshing now using cache
  • Last online time synced with setting
  • Refreshing interval to 120sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant