SychO would that help in some way? It's just doing the same queries at a slightly different time.
Afrux Forum Widgets Core
- Edited
matteocontrini I don't know what you think these widgets do, the only query added is that of the online widgets, which is very lightweight, everything else is cached. I only added this setting because it was the only possibility of it being the cause. I don't really know what else it could be. There is no reason these widgets would cause anything of that sort, I still think something might be wrong in your server or some other extension conflicting with these.
SychO I'm curious as you are, I'm here to help, but it seems pretty clear to me that the issue is somehow caused (maybe indirectly) by one of these extensions. MySQL metrics tell me that suddenly Flarum makes thousands of queries, and if I disable these extensions they stop. This is what I know, then I can live without these extensions if we have no clue of what could be the issue unfortunately, though, I cannot run experiments in production (obviously).
matteocontrini MySQL metrics tell me that suddenly Flarum makes thousands of queries
Can you log exactly what the queries are? That could help track down a source
matteocontrini I cannot run experiments in production (obviously).
No ofc not. We'll see, I'll still try to look into this, and I'm sure we'll find what the cause is at some point.
askvortsov yes I could enable MySQL logging, which is quite verbose. I'll see what to do
Have an issue where one widget (websockets) is greyed out even though it's not active on the layout anywhere. It originally was, but I disabled due to a bug - however I can't get it back on now.
JSON.stringify(app.widgets)
"{\"widgets\":[{\"key\":\"topPosters\",\"isUnique\":true,\"placement\":\"end\",\"position\":3,\"extension\":\"afrux-top-posters-widget\",\"id\":\"afrux-top-posters-widget:topPosters\"},{\"key\":\"news\",\"isUnique\":true,\"placement\":\"top\",\"position\":1,\"extension\":\"afrux-news-widget\",\"id\":\"afrux-news-widget:news\"},{\"key\":\"forumStats\",\"isDisabled\":false,\"isUnique\":true,\"placement\":\"end\",\"position\":2,\"extension\":\"afrux-forum-stats-widget\",\"id\":\"afrux-forum-stats-widget:forumStats\"},{\"key\":\"onlineUsers\",\"isUnique\":true,\"placement\":\"end\",\"position\":1,\"extension\":\"afrux-online-users-widget\",\"id\":\"afrux-online-users-widget:onlineUsers\"},{\"key\":\"topLikeGivers\",\"isUnique\":true,\"placement\":\"end\",\"position\":3,\"extension\":\"miniflar-top-like-givers-widget\",\"id\":\"miniflar-top-like-givers-widget:topLikeGivers\"},{\"key\":\"WebsocketOnlineUsersWidget\",\"isDisabled\":false,\"placement\":\"end\",\"position\":1,\"extension\":\"kyrne-websocket\",\"id\":\"kyrne-websocket:WebsocketOnlineUsersWidget\"}],\"states\":{\"afrux-top-posters-widget:topPosters\":{},\"afrux-news-widget:news\":{},\"afrux-forum-stats-widget:forumStats\":{},\"afrux-online-users-widget:onlineUsers\":{},\"miniflar-top-like-givers-widget:topLikeGivers\":{},\"kyrne-websocket:WebsocketOnlineUsersWidget\":{}},\"config\":{\"instances\":[{\"id\":\"afrux-news-widget:news\",\"extension\":\"afrux-news-widget\",\"key\":\"news\",\"placement\":\"top\",\"position\":0},{\"id\":\"afrux-forum-stats-widget:forumStats\",\"extension\":\"afrux-forum-stats-widget\",\"key\":\"forumStats\",\"placement\":\"end\",\"position\":0},{\"id\":\"afrux-online-users-widget:onlineUsers\",\"extension\":\"afrux-online-users-widget\",\"key\":\"onlineUsers\",\"placement\":\"end\",\"position\":1},{\"id\":\"afrux-top-posters-widget:topPosters\",\"extension\":\"afrux-top-posters-widget\",\"key\":\"topPosters\",\"placement\":\"end\",\"position\":2},{\"id\":\"miniflar-top-like-givers-widget:topLikeGivers\",\"placement\":\"end\",\"position\":3}],\"disabled\":[\"kyrne-websocket:WebsocketOnlineUsersWidget\"]}}"
ctml Oh I'm guessing it's because the widget doesn't specify the isUnique
value, I should set default values for when they're not provided. I've logged the issue and will look into it when I can afrux/forum-widgets-core6
I have a small request to be able to set mobile access not to load, so that the page access speed can be guaranteed. Because after installing these plugins, I can clearly perceive that the page access speed has become slower. Also, the widget in the mobile interface affects the idea of mobile simplicity, so I wonder if it is possible to develop a small button for setting the mobile interface not to load? Thank you for your consideration and look forward to implementing it!
In the short term, to keep the mobile interface from showing these widgets, I am hiding them with css, but this method does not make access faster and the resources will still load.
giter I do plan to add an option to hide them on mobile, but not for performance reasons, because there is no performance impact, by default the widgets load what they need after the page has loaded, so whether they are hidden or visible on mobile will make no difference performance wise and the page will still load as fast as it did before.
- Edited
What about allowing one to click on the username to go to that person's profile (for the top posters, and any other widget that lists people). And/or, any plan to one day add the ability to make things this "week" or "year" or "all time," instead of just this month?
Edit: Oh, I see online users does link to profiles. Just the top posters one doesn't. Okay. Not a big deal. Really nice extensions. Thanks!
010101 What about allowing one to click on the username to go to that person's profile (for the top posters, and any other widget that lists people). And/or, any plan to one day add the ability to make things this "week" or "year" or "all time," instead of just this month?
Sometime in the future hopefully
if i set 2,3,4 items in the header or in the footer and go on the smartphone, the items do not go among themselves. there stay in horizontal line.