Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writeFile, do not force append mode #78

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open

writeFile, do not force append mode #78

wants to merge 1 commit into from

Conversation

ronaldex
Copy link

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.

use the actual $mode parameter instead of forcing append mode
@dimitrihilverda
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants