28 | 03 | 2024
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 87 guests and no members online

Лента новостей

Newsletter
Welcome, Guest
Username: Password: Remember me
Component and plugin for musical sites / Компонент для музыкальных сайтов и улучшенная версия плагина MP3 Browser

TOPIC: Long time loading page with Category List

Long time loading page with Category List 9 years 9 months ago #7038

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
If You're using 'Category List' view for Your menu item, it may be cause for the long time loading of Your page.

That happens because Joomla is starting (evaluating) content plugins for all articles from 'Category List', for category that You've selected (and Commedia content plugin too), even if Joomla will show only topics of those articles (without content).

To prevent it for Commedia You need to open plugins/content/commedia/commedia.php and put after:
if ($jAp->getName()!= 'site') return true;

this line:
if ((JRequest::getCmd('view') == 'category') && (JRequest::getCmd('layout') !== 'blog')) return true;
Last Edit: 9 years 9 months ago by admin.
The administrator has disabled public write access.

Долгая загрузка страницы в случае Списка материалов категории 9 years 9 months ago #7039

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Если Вы выбрали режим "Список материалов категории" для Вашего пункта меню, это может послужить причиной долгой загрузки страницы.

Это происходит, потому что Joomla поочередно запускает все плагины группы 'content' для всех материалов в списке (в том числе и Commedia), даже если в итоге будут показаны только заголовки материалов (в виде списка).

Чтобы предотвратить загрузку Commedia Вам нужно в файле plugins/content/commedia/commedia.php вставить после:
if ($jAp->getName()!= 'site') return true;

вот эту строку:
if ((JRequest::getCmd('view') == 'category') && (JRequest::getCmd('layout') !== 'blog')) return true;
The administrator has disabled public write access.
Time to create page: 0.072 seconds
for children older than 12 years