Improving eZ publish performance with Varnish

Author Message

Webmaster Mission Timothée

Monday 09 July 2007 1:08:39 am

Hello,

When I read "Linpro has a close relationship with eZ Systems", I hope that I will find some help to optimize my web site.

I want to cache all the unlogged pages but pipe when user is logged in

my filtering's config's file is vcl.conf (written in Varnish Config Langage)

a diff on the IP paquet for index.php (logged in) and index.php (not logged in) send no difference in the html headers.

Can you help me ? (my english is very bad, so sorry)

André R.

Monday 09 July 2007 4:45:26 am

eZ Publish currently always sends out session to a user even if he isn't logged in (because he can still have access to posting comments and so on).

This and other things are being looked at for better support for varnish and similar solutions.
But in the mean time you'll have to force cache of certain parts of your web page that are for anonymous users.

The normal way to solve this is to have several siteaccesses, one thats being cached, one for logged in users, and one for admin interface.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Xavier Dutoit

Monday 09 July 2007 6:32:32 am

Hi,

If you're willing to put your hands and modify the kernel, one option is to modify the login to add a cookie "loggedin".

You can then test this cookie to decide if it's anonymous or logged in user.

(idea stolen from someone else, can't remember where I saw/read it)

X+

http://www.sydesy.com

Paul Borgermans

Monday 09 July 2007 8:36:23 am

That was from Kristof ;-) (to have one siteaccess, static cache for anonymous, normal view caches for front-end editing)

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Kristof Coomans

Monday 09 July 2007 10:43:30 am

The idea wasn't mine, I only wrote some code for it. See http://ez.no/community/forum/developer/static_cache_get_user_login_information_by_cookie_js

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Norman Leutner

Wednesday 29 August 2007 6:44:46 am

Has anybody managed to get Varnish working together with ez?

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.