Prevent Block Caching

#1
I have a block on my magento site called Amasty_Finder_Block_Form. It filters products by specified attributes. With LiteMage enabled I'm unable to change the values https://gt4-play.co.uk/shop/ once Ive made the initial selection until I flush teh LiteMage cache. I therefore assume that I need to turn of caching for this block. Ive had a fiddle with config.xml and added
Code:
                    <access>public</access>
                    <blocks>T:Amasty_Finder_Block_Form</blocks>
                    <purge_events>
                        <finder_item_save_after/>
                        <finder_item_delete_after/>
                    </purge_events>
but all this seems to do is prevent the display of the block. Can you point me in the right direction please
 
Last edited by a moderator:

Pong

Administrator
Staff member
#2
such blocks are not cached friendly. Such blocks always have to pull information from backend. It might be possible to exclude it but you will need to make template code change and it could be time-consuming, Not suggest to use such function since it will slow down the page load speed. If the function is critical to your site, you can consider our paid support for LiteMage : https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:litemage:support_tiers
 
Top