xpdo icon indicating copy to clipboard operation
xpdo copied to clipboard

writeFile, do not force append mode

Open ronaldex opened this issue 9 years ago • 1 comments

use the actual $mode parameter instead of forcing append mode.

This behaviour caused problems on our load balancing server configuration (2 servers accessing the same modx cache directory using NFS). It lead to corrupt cache; despite the pointer is being set to the start of the file, the cache file would contain appended content.

ronaldex avatar Oct 13 '15 17:10 ronaldex

Tested this and this works, and as far as I can see does not break any other thing.

dimitrihilverda avatar Mar 13 '18 12:03 dimitrihilverda