Skip to content

Commit

Permalink
Fixed issue with cached pages and message block
Browse files Browse the repository at this point in the history
After debugging an issue with session messages, I've found out that the sort order in dynamic blocks is very important and which had a great impact to my problem and solved my issue. 

I guess the problem is that only "global_messages" block is used in the templates. But in the FPC_Observer preparedLayout function all session messages are set to the "messages" block, because its the on the first position in the dynamic_block list. But the "messages" block is used nowhere. So I just switched the positions between "messages" and "global_messages" and  everything works fine for me now.
  • Loading branch information
alexherbs committed Jan 22, 2016
1 parent 68b313c commit 5325a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Lesti/Fpc/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@
cms_page_view,
catalog_product_view,
catalog_category_view]]></cache_actions>
<dynamic_blocks><![CDATA[messages,
global_messages,
<dynamic_blocks><![CDATA[global_messages,
messages,
global_notices,
global_cookie_notice,
right.reports.product.viewed]]></dynamic_blocks>
Expand Down

0 comments on commit 5325a4a

Please sign in to comment.