Active
Project:
Status Messages Alter
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2011 at 12:17 UTC
Updated:
16 Jan 2012 at 14:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
gdud commentedPressflow don't use sessions for anonymous users.
The session starts in drupal_session_start() where drupal check if $_SESSION is empty. However Messages Alter creates empty array 'messages' in $_SESSION variable even if there are no messages to display so... session always starting for anonymous users.
drupal_page_is_cacheable() function (added by Pressflow) check if session has already stared by calling drupal_session_started(). If yes, page don't retrieve from cache, and new cache will not be created.
Solution is simple. See in attachement patch.
Comment #2
matsearle commentedCan someone apply this patch to the module, gdud has made valid comments. It won't affect normal drupal installs. I've just had to patch this module even though the patch was released before the latest release.
Thanks
Comment #3
BartonDrupal commentedYeah, I'm on a deadline so I'll get to it soon.
Comment #4
achtonFWIW, this works for me too.