albertobraschi / openmage-turpentine-varnish

Free Ukraine! Updated version of Varnish connector for OpenMage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

turpentine-varnish

This is a fork. Work in progress. Can be experimental.

To install, run: composer require "luigifab/openmage-turpentine-varnish":"dev-devel"

Some new features:

  • compatible with blackfire
  • varnish will close the connexion when url is unknown (444)
  • you can now flush public blocks with events
  • you can now flush blocks from backend

For the public events:

# 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');
  • For: Varnish 4.x / 5.x / 6.x / 7.x
  • Compatibility: OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2
  • License: GNU GPL 2+

About

Free Ukraine! Updated version of Varnish connector for OpenMage.

License:GNU General Public License v2.0


Languages

Language:PHP 90.1%Language:VCL 7.0%Language:HTML 2.9%