projects / org / se7enxweb / xrowakamai
Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
xrowakamai | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
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.
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
Alter those settings in the site.ini
[Event]
Listeners[]=module/start@AkamaiConnector::checkNotModified
Listeners[]=response/output@AkamaiConnector::deliver
See ContentViewTest.php as an example. Beware and use as less SQL queries as possible.
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
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/
Add this line to config.php to clear all cache fast.
define ( 'CDN_GLOBAL_EXPIRY' , '2013-01-30 00:00:00 GMT' );