Forums / Developer / Multiple simultaneous requests and cache generation

Multiple simultaneous requests and cache generation

Author Message

Piotrek Karaś

Wednesday 17 December 2008 11:18:29 am

Hi all,

Can anyone tell me, or at least give me a hint where to look for the answer:

Whenever <b>cache-block</b> or <b>view-cache</b> are expired or physically cleared, what's eZ approach in generating new ones: will all the simultaneous requests compete in generating cache-blocks or view-cache, or will the first one set some sort of lock, making all other requests wait for it being generated? Or maybe any other approach?

This seems to be performance-wise <b>important for heavy-traffic sites</b>, as many competing requests could kill a server in case of accidental cache clear, for example.

Any comments or clarification on this subject greatly appreciated!

Cheers,
Piotrek

<i>PS. This is a question forwarded from a potential heavy-traffic eZ client, so it would be great if I could get back to them with some feedback... ;)</i>

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

André R.

Monday 29 December 2008 4:04:07 am

A lock is used on view cache, but this is subject to change at least in the cluster code:
http://issues.ez.no/IssueView.php?Id=14204&activeItem=16

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