Hello everyone
The world is often cruel to us
You can show/hide the hjw calendar on the main page. That's exactly the point.
When the calendar is closed, I see the following
Screenshot 2025-06-27 112933.png
Loading time: 0.383s | Max. memory usage: 21.72 MiB | GZIP: Off | Queries: 87 | SQL Explain
When the calendar is displayed, I see the following
Screenshot 2025-06-27 112958.png
Loading time: 0.515s | Max. memory usage: 22.43 MiB | GZIP: Off | Queries: 550 | SQL Explain
If I, as the only logged-in user, display the calendar on the main page and then simply log out, I receive 550 queries as a guest. If I'm the only logged-in user in the forum and hide the calendar and simply log out, I receive 80 queries.
Das ist meine ext/hjw/calendar/style/prosilver/templates/event/overall_header_navigation_prepend.html
Code: Select all
<!-- IF not (S_GROUP_23 or S_GROUP_2 or S_GROUP_25) -->
{% if not S_IS_BOT and S_USER_LOGGED_IN || S_IS_BOT and S_CALENDAR_FOR_GUESTS || !S_USER_LOGGED_IN and S_CALENDAR_FOR_GUESTS %}
{% if CALENDAR_ON_INDEX_OFF %}
<li data-last-responsive="true">
{% if CALENDAR %}
<a href="{{ DISPLAY_ACTION }}" title="{{ lang('CALENDAR_T_OFF') }}" role="menuitem" }}">
<i class="icon fa-regular fa-calendar-minus-o" aria-hidden="true"></i><span class="show_text_on_phone">{{ lang('CALENDAR_T_OFF') }}</span>
</a>
{% else %}
<a href="{{ DISPLAY_ACTION }}" title="{{ lang('CALENDAR_T_ON') }}" role="menuitem" }}">
<i class="icon fa-regular fa-calendar-plus-o" aria-hidden="true"></i><span class="show_text_on_phone">{{ lang('CALENDAR_T_ON') }}</span>
</a>
{% endif %}
{% if VERSION == '3.1' %}
<li {% if not S_USER_LOGGED_IN %}data-skip-responsive="true"{% else %}data-last-responsive="true"{% endif %}>
<a href="{{ U_CALENDAR }}" title="{{ lang('CALENDAR') }}" role="menuitem">{{ lang('CALENDAR') }}</a></li>
{% endif %}
{% if VERSION == '3.2' || VERSION == '3.3' %}
<a href="{{ U_CALENDAR }}" title="{{ lang('CALENDAR') }}" role="menuitem">
<span>{{ lang('CALENDAR') }}</span>
</a>
</li>
{% endif %}
{% endif %}
{% endif %}
<!-- ENDIF -->
The hjw calendar has a visible/invisible setting for guests, and that works perfectly; as a guest, you can't see any of the calendar.
With <!-- IF not (S_GROUP_23 or S_GROUP_2 or S_GROUP_25) --> I hide the calendar for all groups that aren't guild members, and these groups can't see any of the calendar either. The extension for this application
can be viewed here.
Currently, the simplest solution would be to disable the weekly overview on the main page and disable the show/hide icon.
So that only the calendar link is visible and can be executed. If I do exactly that, I constantly receive around 550 queries.
It seems that the calendar link alone brings these 550 queries
Screenshot 2025-06-27 125547.png
I also renamed navigation_prepend.html so that no link is displayed anymore and I still get 550 queries, even though the week display and the icon are no longer displayed.
So it seems as if the whole thing is constantly loading, only when I display the show/hide icon and hide the weekly overview there, I get 80 queries
Of course, every attempt cleared the forum cache, browser cache, etc.
You do not have the required permissions to view the files attached to this post.