Details
Description
In a clusterized configuration, on a live server, we can see some of the following errors in apache error log :
[Thu Dec 7 11:32:57 2006] [error] PHP Warning: restore(var/femmeactuelle/cache/sortkey_ez_femmeactuelle_formation.php) [<a href='function.restore'>function.restore</a>]: failed to open stream: No such file or directory in /var/www/ezpublish.formation/lib/ezutils/classes/ezphpcreator.php on line 838 [Thu Dec 7 11:32:57 2006] [error] PHP Warning: restore() [<a href='function.include'>function.include</a>]: Failed opening 'var/femmeactuelle/cache/sortkey_ez_femmeactuelle_formation.php' for inclusion (include_path='.:/usr/share/pear:/var/www/ezpublish.formation/') in /var/www/ezpublish.formation/lib/ezutils/classes/ezphpcreator.php on line 838 [...] [Thu Dec 7 11:37:24 2006] [error] PHP Warning: restore(var/femmeactuelle/cache/expiry.php) [<a href='function.restore'>function.restore</a>]: failed to open stream: No such file or directory in /var/www/ezpublish/lib/ezutils/classes/ezexpiryhandler.php on line 66 [Thu Dec 7 11:37:24 2006] [error] PHP Warning: restore() [<a href='function.include'>function.include</a>]: Failed opening 'var/femmeactuelle/cache/expiry.php' for inclusion (include_path='.:/usr/share/pear:/var/www/ezpublish/') in /var/www/ezpublish/lib/ezutils/classes/ezexpiryhandler.php on line 66
Other scripts like ezuser.php on line 1343.
The problem seems to come from the fact you delete the local file in var after use. The problem is that, with multi user, the file can be deleted just before it is used.
It's not always the case, but on my config, it happens 2 or 3 times per minute.
Is it necessary to delete the file after use since it is restored each time it is necessary.
Steps to reproduce
Only happens on live servers.