luigifab/openmage-turpentine-varnish

OpenMage 的 Varnish 连接器更新版本。

安装: 75

依赖项: 0

建议者: 0

安全: 0

星标: 7

关注者: 3

分支: 253

类型:magento-module

dev-devel 2023-11-30 18:19 UTC

This package is auto-updated.

Last update: 2024-09-30 01:32:41 UTC


README

这是一个分支。正在进行中。

要安装,请运行: composer require "luigifab/openmage-turpentine-varnish":"dev-devel"

一些新功能

  • 兼容 blackfire
  • 当 URL 未知(444)时,Varnish 将关闭连接
  • 现在您可以从后端(使用 POST 请求)刷新块
  • 现在您可以使用事件刷新公共块

对于公共事件(如果有观察器在 predispatch 事件上,请小心)

# layout
<action method="setEsiOptions">
    <params>
        <access>public_events</access>
        <scope>page</scope>
        <flush_events>
            <my_event_allsessions /><!-- for public_events -->
            <my_event /><!-- original way -->
        </flush_events>
    </params>
</action>
# from frontend or backend
if (Mage::app()->useCache('turpentine_pages') || Mage::app()->useCache('turpentine_esi_blocks'))
    Mage::dispatchEvent('my_event_allsessions');
  • 适用于:Varnish 4.x / 5.x / 6.x / 7.x
  • 兼容性:OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3?
  • 许可:GNU GPL 2+