Search by

se7enxweb / xrowakamai

7x

There is no license information available for the latest version (v0.0.0.1) of this package.

Integration with Akamai for eZ Publish

v0.0.0.1 2026-12-03 18:46 UTC

This package is auto-updated.

Last update: 2026-12-03 18:47:36 UTC


README

Introduction

Integration with Akamai for eZ Publish

The basic feature of this extension is that it will enchant to Events wil prebuild functionality.

The one event is set before processing the request as soon as possible to determine as soon as possible if a requests can be aborted and answered with an 304.

A second event is set after processing the request and sets additional headers.

Setup

  • Active the extenstion
  • Apply patch from patch/[version]/xrowakamai.diff The patch will remove expires header from index.php or ezpkernelweb.php
  • Enable settings in xrowcdn.ini

Option A.) Set an ttl in seconds option for each ez module in [Settings].Modules in xrowcdn.ini

Modules[content/view]=3600

or

Modules[content/*]=3600

Option B.) Set an plugin wiht smart logic to handle the request.

Modules[content/view]=ContentViewTest

  • Configure Event Listeners

Alter those settings in the site.ini [Event] Listeners[]=module/start@AkamaiConnector::checkNotModified Listeners[]=response/output@AkamaiConnector::deliver

Create a new Plugin

See ContentViewTest.php as an example. Beware and use as less SQL queries as possible.

Customizations

Howto set a custom expiry time for certain nodes?

To set a custom expiry you can you the NodeList Array of the xrowcdn.ini. The configuration looks like:

[ContentViewSettings].NodeList[NodeID]=ttl

Debug Akamai Headers

curl -v -s -o/dev/null -H "Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no" http://dev.example.com/

curl -v -s -o/dev/null -H "Host: dev.example.com" http://193.0.0.0/

Global Expiry

Add this line to config.php to clear all cache fast.

define ( 'CDN_GLOBAL_EXPIRY' , '2013-01-30 00:00:00 GMT' );

Official status: Officially Approved for Exponential 6.