Skip to content

[6.x] Fix nocache directory permissions - #15762

Merged
duncanmcclean merged 2 commits into
6.xfrom
nocache-directory-permissions
Nov 2, 2026
Merged

duncanmcclean merged 2 commits into
6.xfrom
nocache-directory-permissions

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where the storage/statamic/tmp/nocache directory is always created with 0755 permissions, which prevents nocache fragments from being written when CLI and web processes run as different users and share access through group permissions or ACLs.

This was happening because #15363 moved nocache fragments from storage/framework/views (which Laravel creates with 0777, leaving the umask to decide) into storage/statamic/tmp/nocache, which was created via File::makeDirectory(). Statamic's filesystem adapter hardcodes 0755, stripping group write regardless of the umask.

This PR fixes it by creating the nocache directory with 0777, matching Laravel's compiled views directory, so the umask decides the final permissions.

Fixes #15566
Caused by #15363

@duncanmcclean
duncanmcclean merged commit feaa91e into 6.x Nov 2, 2026
64 checks passed
@duncanmcclean
duncanmcclean deleted the nocache-directory-permissions branch November 2, 2026 11:17
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.

Make native filesystem directory permissions configurable to support shared POSIX ACL access

1 participant