简体   繁体   English

Magento 1.9 - Amasty FPC:如何永久忽略一个块

[英]Magento 1.9 - Amasty FPC: How do I ignore a block permanently

We're using Amasty FPC and we're running into a wall where we have two blocks that we want to never be cached. 我们正在使用Amasty FPC,我们遇到了一个墙,我们有两个块,我们希望永远不会被缓存。

However, none of the code examples provided by Amasty, their "manual", or any online help I've googled provide a solution that explains how to do this. 但是,Amasty提供的代码示例,他们的“手册”或我用Google搜索的任何在线帮助都没有提供解释如何执行此操作的解决方案。

Is there anyone with experience with this extension that can shed some light? 是否有任何有此扩展经验的人可以解决这些问题?

The relevant code, as I understand it. 相关代码,据我了解。

amfpc.xml amfpc.xml

<nav_application_selector_mobile> <!-- the block name -->
   <routes>
     <catalogsearch>catalogsearch/result/*</catalogsearch>
     <shop>shop/*</shop>
   </routes>
</nav_application_selector_mobile>

<app_selector parent="header" />

header.phtml header.phtml

<amfpc name="app_selector"> <!-- the custom block reference for amfpc -->
    <div id="top-menu-search-by-vehicle" class="menu-opt">
       ...
    </div>
</amfpc>

This supposedly is supposed to clear the block's cache on certain routes, as well as set a punch hole around the other block so that it never gets cached. 这应该是在某些路由上清除块的缓存,以及在另一个块周围设置一个打孔,以便它永远不会被缓存。

After hours of trying to get this to work, I'm getting nowhere. 经过几个小时试图让这个工作,我无处可去。

Hello there and thanks for your question. 你好,谢谢你的问题。 Each block should be reviewed individually, and thus we can't help you from here without seeing the details. 每个区块都应该单独审核,因此我们无法在不查看详细信息的情况下帮助您。 Please do create a ticket at our support center, and we will be happy to help you with this one. 请在我们的支持中心创建一张票,我们很乐意为您提供帮助。 Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM