Hi Felix, thanks for the quick help! :o)
Yes, I try to load different things in the same page (like compressing JS, CSS, aso.). I didn´t think of this ... thanks for the explanation! I will disable cache clearing and clear it manually. :o) Mit freundlichen Grüßen aus Zwickau André Fiedler -------------------------------------------------------------- Dipl.-Ing. (FH) André Fiedler Abteilung Internet ---------------------------------------------------------------------------- ----------------- Neu: unser CMS für Internet / Intranet http://www.redaktoer.info ---------------------------------------------------------------------------- ----------------- ö_konzept Agentur für Werbung und Kommunikation GmbH & Co.KG Audistraße 3 08058 Zwickau Telefon: 0375 / 2 11 94 31 Telefax: 0375 / 2 11 94 19 Internet: http://www.oe-konzept.de E-Mail: [email protected] Sitz: Zwickau Amtsgericht Chemnitz, HRB 12402 Geschäftsführer: Klaus Blechschmidt -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Felix Gilcher Gesendet: Dienstag, 24. Januar 2012 11:01 An: Agavi Users Mailing List Betreff: Re: [Agavi-Users] Agavi 1.0.7 Cache - Race Conditions? Hello André, this is a known race condition in the way cache-clearing works (and it's always been like that). The problem occurs if you have multiple requests running at the same time, such as two images that are rendered by agavi on the same page. Image 1 recreates the cache while the request for image 2 tries to clear the cache. The second request can't clear the cache since the first request is still writing to the directory. The problem occurs more often if you have more requests in parallel and longer running requests. There's several ways to handle this: a) clear the cache manually and disable the automatic cache clearing in development mode b) serialize your request in your development webserver (this will slow things quite a bit) c) ignore the message in development. regards Felix On Jan 24, 2012, at 10:53 AM, André Fiedler / ö_konzept Zwickau wrote: > If I bootstrap as production all works fine how to clear the cache in development the right way? This did work with older versions of Agavi. > > > Von: [email protected] [mailto:[email protected]] Im Auftrag von André Fiedler / ö_konzept Zwickau > Gesendet: Dienstag, 24. Januar 2012 10:34 > An: [email protected] > Betreff: [Agavi-Users] Agavi 1.0.7 Cache - Race Conditions? > > Hi, > > Environment: > - Agavi 1.0.7 > - Php 5.3.1 > - Windows Server 2008 R2 > > If I run Agavi I get these errors: > > Zeit: 2012-01-24 10:20:13 > Meldung: rmdir(C:\inetpub\ foo \app\cache\config) [<a href='function.rmdir'>function.rmdir</a>]: Directory not empty > Datei: C:\inetpub\ foo \lib\agavi\src\util\AgaviToolkit.class.php > Zeile: 181 > > Zeit: 2012-01-24 10:26:14 > Meldung: unlink(C:\inetpub\ foo \app\cache\config\action_filters.xml_development_web_51f17662c2d9fdd8ede5e2d 47d0c60aea3383af8.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory > Datei: C:\inetpub\ foo \lib\agavi\src\util\AgaviToolkit.class.php > Zeile: 183 > > > Seem´s there is a bad race condition between creating of cache files and deleting them? > How to fix this? > > Thx André > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users -- Felix Gilcher Florian und Felix Gilcher -asquera- GbR Gesellschafter: Felix Gilcher, Florian Gilcher m. +49 172 840 88 28 Florian und Felix Gilcher - asquera - GbR c/o Ilja Wolf-Bauwens, Alexander Dehning Abspannwerk Coworking Ohlauer Straße 43 10999 Berlin _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
