I have a facebook login and whenever I enable it my site just loads and loads then returns a 500 error. My log file says I ran out of memory.
So I've been trying to somehow exclude that block from being cached.
I added the name of the block to User-Defined Cache Rules under Customized Block Names for "toplinks" Tag. That didn't work so I added it to the config.xml like this:
<toplinks>
<access>private</access>
<blocks>top.links</blocks>
<purge_tags>cart, wishlist, fblogin</purge_tags>
<!-- This is a composite grouping. The purge events for the blocks in this grouping are
a combination of existing purge event sets from other groupings. By using purge_tags
to reference these other groupings, you do not need to redefine these purge events. -->
</toplinks>
Here is the XML file for the Facebook login:
<?xml version="1.0"?>
<layout version="0.1.0">
<customer_logged_out>
<reference name="top.links">
<block type="fblogin/fblogin" name="fblogin">
<action method="setTemplate">
<template>fblogin/fblogin.phtml</template>
</action>
<block type="fblogin/fblogin" name="fblogin" template="fblogin/fblogin.phtml" />
</block>
<action method="addLinkBlock">
<blockName>fblogin</blockName>
</action>
</reference>
</customer_logged_out>
<customer_logged_in>
<reference name="top.links">
<block type="fblogin/fblogin" name="fblogin">
<action method="setTemplate">
<template>fblogin/fblogout.phtml</template>
</action>
<block type="fblogin/fblogin" name="fblogin" template="fblogin/fblogout.phtml" />
</block>
<action method="addLinkBlock">
<blockName>fblogin</blockName>
</action>
</reference>
</customer_logged_in>
<customer_account_login translate="label">
<reference name="content">
<block type="fblogin/fblogin" name="fblogin" template="fblogin/fblogin.phtml" />
</reference>
</customer_account_login>
<fblogin_index_index>
<reference name="content">
<block type="fblogin/fblogin" name="bt_fblogin" template="fblogin/bt_fblogin.phtml" />
</reference>
</fblogin_index_index>
</layout>
How can I keep this block from being cached?
Thank you
So I've been trying to somehow exclude that block from being cached.
I added the name of the block to User-Defined Cache Rules under Customized Block Names for "toplinks" Tag. That didn't work so I added it to the config.xml like this:
<toplinks>
<access>private</access>
<blocks>top.links</blocks>
<purge_tags>cart, wishlist, fblogin</purge_tags>
<!-- This is a composite grouping. The purge events for the blocks in this grouping are
a combination of existing purge event sets from other groupings. By using purge_tags
to reference these other groupings, you do not need to redefine these purge events. -->
</toplinks>
Here is the XML file for the Facebook login:
<?xml version="1.0"?>
<layout version="0.1.0">
<customer_logged_out>
<reference name="top.links">
<block type="fblogin/fblogin" name="fblogin">
<action method="setTemplate">
<template>fblogin/fblogin.phtml</template>
</action>
<block type="fblogin/fblogin" name="fblogin" template="fblogin/fblogin.phtml" />
</block>
<action method="addLinkBlock">
<blockName>fblogin</blockName>
</action>
</reference>
</customer_logged_out>
<customer_logged_in>
<reference name="top.links">
<block type="fblogin/fblogin" name="fblogin">
<action method="setTemplate">
<template>fblogin/fblogout.phtml</template>
</action>
<block type="fblogin/fblogin" name="fblogin" template="fblogin/fblogout.phtml" />
</block>
<action method="addLinkBlock">
<blockName>fblogin</blockName>
</action>
</reference>
</customer_logged_in>
<customer_account_login translate="label">
<reference name="content">
<block type="fblogin/fblogin" name="fblogin" template="fblogin/fblogin.phtml" />
</reference>
</customer_account_login>
<fblogin_index_index>
<reference name="content">
<block type="fblogin/fblogin" name="bt_fblogin" template="fblogin/bt_fblogin.phtml" />
</reference>
</fblogin_index_index>
</layout>
How can I keep this block from being cached?
Thank you