PHOENIX-MEDIA / Magento-PageCache-powered-by-Varnish

Community version which is available on Magento Connect (http://www.magentocommerce.com/magento-connect/pagecache-powered-by-varnish.html)
89 stars 49 forks source link

Added config files for Varnish 4.0 #39

Closed pierredup closed 8 years ago

pierredup commented 8 years ago

This is an attempt to add support for Varnish 4.0. (#7) I have updated the vcl files to work with Varnish 4.0.

The diff between 3.0 and 4.0 can be found here: https://gist.github.com/pierredup/fad1db6977cbd7d1f0f3

There still seems to be some issues, since I keep getting an empty response when trying to load a site, and I'm not sure what could be the problem. I'd appreciate it if someone with more experience with Varnish can have a look at the vcl files and see if they can spot any issues.

Also since 4.0, the -p vcc_allow_inline_c=on parameter needs to be passed to the command. This is an issue for the start script (on CentOS at least), since the ExecStartPre script which verifies the config files doesn't include this parameter, so I had to manually update the service file to include this parameter.

PHOENIX-MEDIA commented 8 years ago

Varnish 4.1 support has been added: https://github.com/PHOENIX-MEDIA/Magento-PageCache-powered-by-Varnish/blob/master/app/code/community/Phoenix/VarnishCache/etc/default_4.1.vcl

Please report any bugs in a new ticket.