здравствуйте. Помогите пожалуйста советом. Чат установлен на главной странице форума, доступ гостям закрыт. После включения форума ощутимо возросла нагрузка на сервер, а сегодня выскочила сообщение о превышение числа обращений к СУБД. если чат в настройках выключить то форум начинает работать заметно шустрее. Есть ли какой-то способ оптимизировать работу так чтоб не пришлось убирать его с главной страницы? посетителей на форуме не очень много, в пике одновременно 14-15 человек. Возможно снизить нагрузку позволит отключение вообще авто обновления? но ка кэто сделать? в опциях толь промежуток от 10 до 45 есть
// Options (global) $mchat_enable = false; /* Enable this mChat? */ $mchat_refresh_time = 45; /* Auto Update time in seconds (recommended from 10 to 45). */ $mchat_message_limit = 10; /* The maximum number of messages in index page (recommended from 10 to 20). */ $mchat_archive_limit = 20; /* The maximum number of messages in archive page (recommended from 10 to 50). */ $mchat_flood_time = 0; /* Flood control time in seconds (recommended from 5 to 30). (set 0 to disable) */ $mchat_allow_urls = true; /* Convert the addresses of sites to links? */ $mchat_allow_smilies = true; /* Allow to use smilies? */ $mchat_color_nick = true; /* Colored nicks in the treatment. */ $mchat_message_max_length = 500; /* The maximum number of characters in message (recommended from 100 to 1000). (set 0 to disable) */ $mchat_not_allowed_bbcodes = ''; /* Not allowed bbcodes for use in mChat (separate bbcodes with a vertical bar, example: 'b|u|code'). (set empty to disable) */ $mchat_use_custom_page = true; /* Use the chat on mchat.php page? */ $mchat_use_custom_page_whois = false; /* Show who is online on board to custom page? */ $mchat_date_format = 'd M Y, H:i'; /* Date format for show in messages. (set empty to use default date by board or user setting) */ $mchat_message_max_word = 100; /* Maximum length of words in message (recommended from 50 to 150). (set 0 to disable) */
lion205, ну не может этот чат так грузить, вы по какой статистике смотрите? А автообновление любое поставить можно. От 10 до 45 это рекомендуемое только.