markguinn / silverstripe-cloudassets

Allows some or all of the assets folder to be located in a cloud storage container (S3, CloudFiles, etc.)
MIT License
19 stars 9 forks source link

Clear the stat cache on converting to placeholder #32

Closed simonwelsh closed 7 years ago

simonwelsh commented 7 years ago

In certain situations, it's possible for the containsPlaceholder call to be called before and after convertToPlaceholder. This leads to PHP returning the cached file size in the second call, incorrectly causing convertToPlaceholder to return `false.