eZ Community » Forums » Install & configuration » Cache configuration
expandshrink

Cache configuration

Cache configuration

Monday 31 August 2015 9:37:47 am - 8 replies

Hello,

 

We are using EZ 5.3 (community version), for a website that'll be hosted by several web servers. We'd like to implement caching, but I'm struggling a bit to understand how to configure the cache properly.

- Do I really need to setup DFS?

- Do I have to migrate eZ 5.4 for that ?

- Is Varnish really required? According to https://doc.ez.no/display/EZP/Using+Varnish, it is a requirement to use clustering, but I don't understand why Symfony2 http's reverse proxy cannot be use instead.

 

Thanks

 David

 

  • Add reply
  • Quote
  • Inappropriate ?

Thursday 24 September 2015 4:22:51 pm

Ok so nobody here uses the cache / a cluster setup? Everybody uses a single web server ?

  • Inappropriate ?
  • Quote

Friday 25 September 2015 4:53:20 pm

We (Mugo Web) use the eZ DFS cluster a lot for both the new stack and the legacy stack.

For multiple front-end web servers, DFS is the recommended way to go.

You do not have to migrate to eZ 5.4 to use eZ DFS, although the configuration for eZ DFS was finally fully ported to the new stack with 5.4. There are a lot of other improvements that would push you to upgrade to 5.4 as well.

Varnish is not required. You could use another reverse proxy and technically you could use Symfony's. Symfony themselves recommend that you use Varnish or Squid in a production environment, though. And we also heavily use and recommend Varnish.

  • Inappropriate ?
  • Quote

Friday 25 September 2015 10:07:57 pm

Hi David,

A year ago a wrote a blog post about caching with new stack: http://www.netgenlabs.com/Blog/Overview-of-caching-in-eZ-Publish-new-stack It should be still valid except the PURGE in Varnish part. In the meanwhile new version of Varnish was released and eZ started using FOSHTTPCache Bundle.

Maybe it will shed some light on the topic. Sequel post is in the queue too happy.gif Emoticon

  • Inappropriate ?
  • Quote

Tuesday 06 October 2015 2:19:05 pm

Thank you Peter and Ivo

  • Inappropriate ?
  • Quote

Tuesday 06 October 2015 3:41:57 pm

Sorry, I'd like additional clarifications.

- Can we have a setup without using the DFS at all (and still be in a clustered environment)? e.g. would it work if we just mounted ezpublish legacy's var folder to a network shared folder? (From what I understand, it would not, because of the cache expiration model, but I just want to make sure)

- Regarding Ivo's blog post, could you please confirm that if we used Symfony's built in reverse proxy, we would not need to activate ESIs ?

 

Thanks again

  • Inappropriate ?
  • Quote

Tuesday 06 October 2015 4:16:23 pm

Quote from david B :

Sorry, I'd like additional clarifications.

- Can we have a setup without using the DFS at all (and still be in a clustered environment)? e.g. would it work if we just mounted ezpublish legacy's var folder to a network shared folder? (From what I understand, it would not, because of the cache expiration model, but I just want to make sure)

- Regarding Ivo's blog post, could you please confirm that if we used Symfony's built in reverse proxy, we would not need to activate ESIs ?

There are more ways how to do cluster env but the DFS is the only recommended one by eZ Systems as it deals with expirations, locking, syncing and parallelism on the app level so it is less important what is underneath.

Built in reverse proxy is not recommended for production and ESI requests are just silently ignored. AFAIK they are treated as normal renders. ESI makes sense only with real reverse proxies.

  • Inappropriate ?
  • Quote

Tuesday 06 October 2015 4:37:37 pm

Thank you Ivo happy.gif Emoticon

  • Inappropriate ?
  • Quote

Wednesday 28 June 2017 7:55:44 am

Ok so nobody here uses the cache / a cluster setup? Everybody uses a single web server ?

  • Inappropriate ?
  • Quote
expandshrink
  • Add reply
36 542 Users on board!

Forums menu

Your profile is 0 % complete

Proudly Developed with from