Форум сетевых администраторов
Показаны 5 сообщений на этой странице

Форум сетевых администраторов (http://netadmin.ws/forum/index.php)
- Pmachine & ExpressionEngine (http://netadmin.ws/forum/forumdisplay.php?forumid=78)
-- тормозит (http://netadmin.ws/forum/showthread.php?threadid=11688)


Помещено Erick Flatcher 01-05-2006 в 19:46:

тормозит

EE (Core 1.4.1) работает гораздо медленнее чем pM (2.8 Pro)… заметно на глаз ;-(

Видимо из-за структуры – помимо ленты новостей на странице имеется еще три тега exp:weblog:entries для вывода заголовков новостей (в первом одна категория, во втором другая, в третьем третья)…

Сам вывод страницы в браузере безупречен, но сервер задумывается на несколько секунд прежде чем отдает страницу…

Можно что-то сделать?


Помещено Илья П. 02-05-2006 в 06:47:

Ну редко обновляемые запросы можно кешировать...


Помещено Erick Flatcher 02-05-2006 в 19:21:

Ð_то в смысле Enable SQL Query Caching? стоИт...

просто странно, что такая мощная система с кучей ухищрений (помимо кэширования, disable=все что ненужно, отключения ссесий (использую тока куки), отключения Secure Form Mode, отключения Referrer tracking...) работает медленее чем старый pM.


Помещено Qrat 03-05-2006 в 14:41:

смотрим здесь http://www.eewiki.com/wiki/Reduce_Queries

Question:

My page has runs a ton of queries. How can I cut this down?
[edit]
Answer:

Check out the related entry on Optimizing EE.
[edit]
Tweaking EE

Here are some things you can do to reduce queries.
Don't run sessions. Use cookies only. (session preferences)
Disable "Secure Form Mode". (session preferences)
Turn off Referrer tracking. (referrer preferences)
Enable SQL Query caching (database preferences)
Enable Dynamic Weblog Query Caching (global weblog prefs)
Enable page caching.
Keep your templates as light as possible.
Do not use embedded templates.
Don't needlessly use the database. For example, don't use a separate blog to run a link list.
Use the "tag disabling" feature, which lets you turn off things in your weblog tag that you may not be using.
Don't use plugins which require database access.
Turn off ancillary things, like CAPTCHAs, which require database queries.
Disable stats collection. This you have to remove from the scripts. Open core/core.system.php and comment out $STAT->update_stats();

By doing the above things, a default installation of EE can be brought down to 4 queries.
[edit]
Tweaking the Server
make sure you have query caching turned on in EE
make sure you have the proper permissions on your caching folders in EE because even if you have caching turned on, if EE can't write the cache files its not going to help you at all.
make sure you have your templates cached on your busiest templates, and also important is to cache template you maybe embedding like headers/footers as they are going to get hit on every page, so set the cache for a good period of time say 60 minutes.
if you do have a busy site, make sure your host is using MySQL 4.0.x or 4.1.x with query caching turned on in MySQL as MySQL will then cache the most frequently requested queries which can limit general cpu overhead on the hosts database server, as well as speed queries that do make it to the MySQL server instead of EEs query cache.

Also experiment with turning persistent connections off on your EE install, the way some MySQL servers are configured, non-persistent connections can be the same speed as persistent but non-persistent connections on a busy MySQL server use up less CPU overhead as the server does not have to keep track of the persistent connections.

__________________
shit happens


Помещено Orliha 30-05-2006 в 19:32:

ее 1.2.1., правда очен сильно перелопаченая. на дуал ксеоне средненьком. нагрузка: 20к хостов, 100к хитов в сутки. все отлично.

рекомендую ОЧЕНЬ внимательно относится к шаблонам, к запросам, к тому что, как и откуда вынимается тэгом "веблог"...

__________________
RTFM (Уважаемые! Читайте документацию!)


Формат времени GMT. Текущее время 11:25.
Показаны 5 сообщений на этой странице

Powered by: vBulletin Version 2.2.4
Copyright © Jelsoft Enterprises Limited 2000, 2001.