W
W
wolfcruel972018-07-13 13:08:33
Joomla
wolfcruel97, 2018-07-13 13:08:33

Joomla k2, loading for a long time, onK2BeforeDisplay event, where is it located?

Joomla k2, loading for a long time, onK2BeforeDisplay event, where is it located?
The components/com_k2/models/item.php file itself
When displaying a list of products, it loads the page for 20 seconds

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Gruznykh, 2018-07-14
@wolfcruel97

Where the event is located, the answer is in the question itself - components/com_k2/models/item.php
Another question is why it takes a long time to load the page with a list of products. I assume that the list page is set up so that a very long query is made to the database and / or there are a lot of these queries when the page is requested. If you have the opportunity (hosting provides the ability to configure MySQL) and knowledge, start optimizing the database. For starters, think about what page elements you could hide to reduce the number and length of MySQL queries. What is the number of products per page? Reduce this number to some reasonable number - say, 10 pieces, the rest - through pagination at the bottom of the page.
If everything happens on hosting, then K2 is, in principle, a very difficult stray, think about changing the hosting tariff in the direction of increasing resources. Try installing a plugin that promises to speed up K2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question