aligent/cacheobserver

此包已被弃用且不再维护。未建议替代包。

Magento 扩展,用于为默认不缓存的块添加缓存键和标签。

安装: 26

依赖: 0

建议者: 0

安全: 0

星标: 59

关注者: 47

分支: 16

开放问题: 3

类型:magento-module

1.1.0 2016-06-22 00:26 UTC

README

Build Status

Aligent CacheObserver 扩展

Magento 扩展,用于为默认不缓存的块添加缓存键和标签。

事实

描述

Magento 扩展,用于为默认不缓存的块添加缓存键和标签。

用法

在模块的 config.xml 中使用以下内容添加自定义缓存观察器处理器。有关更多信息,请参阅 CacheObserver 的 config.xml。注意:如果需要,您可以使用 CacheObserver 的模型和方法来缓存自己的块。

<config>
    <cacheObserver>
        <!--
            The observer id should be a unique key. Note that all observers will be sorted alphabetically by the
            observer key.
            You may make use of Magento's config.xml merging to overwrite another module's configs if needed.
        -->
        <module_name_observer_id>
            <!--
                `model` is a standard model alias to tell the model
            -->
            <model>module_name/model</model>
            <method>myCustomCacheObserverMethod</method>
            <classes>
                <!-- A list of classes to
                <Some_Module_Block_To_Cache/>
            </classes>
        </module_name_observ_id>
    </cacheObserver>
</config>

要求

  • PHP >= 5.2.0
  • Mage_Core
  • ...

兼容性

  • Magento >= 1.4

安装说明

  1. 通过 composer 安装扩展的 ~2.0.0 版本。

卸载

  1. 通过 composer 删除扩展。

支持

如果您对此扩展有任何问题,请在 GitHub 上提交问题。

开发者

Luke Mills http://www.aligent.com.au

许可证

OSL-3.0

版权

(c) 2015 Aligent