se7enxweb / xrowakamai
Integration with Akamai for eZ Publish
Package info
github.com/se7enxweb/xrowakamai
Type:exponential-extension
pkg:composer/se7enxweb/xrowakamai
Fund package maintenance!
Requires
- php: >=8.0
- se7enxweb/exponential-legacy-installer: ^2.2.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.