The Problem:

In chatroomread.php we have:

if (!$skip_cache && file_exists($chat_cache_file)) { .. }

And the $chat_cache_file file doesn't exist when there are no messages in that chat.
This leads to costly and unnecessary Drupal bootstraps.

The Solution:
Create a chat cache file on hook_insert (and delete it on hook_delete).
- see attached patch.

CommentFileSizeAuthor
#1 chatroom.module.patch785 bytesVladRM

Comments

VladRM’s picture

StatusFileSize
new785 bytes

OK, let's give attaching the patch another try :).

Anonymous’s picture

Status: Needs review » Fixed

thanks for the patch! committed here:

http://drupal.org/cvs?commit=383830

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.