Issue Bug Closed

#54302Filesize might be wrong after setContents() in LocalDriver

Alexander Stehlik 12/10/13, 15:27 updated 10/23/17, 21:46

Description

I use the setContents() function in an Extension and stumbled upon this strange problem:

Directly after calling setContents() the getSize() of the file always returned 0.

After some research I found out that it seems to be a PHP cache issue. When I call clearstatcache() after file_put_contents() the value for the file size is correct.

So I think it would be a good idea to call clearstatcache() after file_put_contents() in the LocalDriver.

Reviews 1