Skip to content

[6.x] Make Glide cache permissions configurable - #15920

Merged
jasonvarga merged 2 commits into
6.xfrom
8199
Nov 20, 2026
Merged

jasonvarga merged 2 commits into
6.xfrom
8199

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where Glide's cached images and directories couldn't be made group-writable, even with a umask like 0002.

This was happening because the local Glide cache disk uses Flysystem's local adapter, which creates directories with 0755 and chmods files to 0644. A umask can only remove bits, so there was no way to get group-write permissions.

This PR fixes it by adding a permissions option to the image_manipulation config (matching the static caching one added in #9755), which is passed to the local Glide cache disk. The defaults stay at 0755 / 0644, so nothing changes unless you opt in:

'permissions' => [
    'directory' => 0775,
    'file' => 0664,
],

Amp thread: https://ampcode.com/threads/T-5dfaf909-8c53-4876-aae1-1ac4fdcdf0b5

Fixes #8199

ampagent and others added 2 commits November 16, 2026 12:47
@jasonvarga
jasonvarga merged commit 8432a30 into 6.x Nov 20, 2026
64 checks passed
@jasonvarga
jasonvarga deleted the 8199 branch November 20, 2026 22:22
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.

Glide image cache wrong permissions (ignoring umask?)

3 participants