Skip to content

Only clear CP resources if they exist#17021

Merged
brandonkelly merged 2 commits into4.xfrom
bugfix/clear-cp-caches
Apr 4, 2025
Merged

Only clear CP resources if they exist#17021
brandonkelly merged 2 commits into4.xfrom
bugfix/clear-cp-caches

Conversation

@timkelty
Copy link
Copy Markdown
Contributor

@timkelty timkelty commented Apr 3, 2025

Description

There are some environments (e.g. Craft Cloud) where \craft\config\GeneralConfig::$resourceBasePath may not exist at all. In that case, we don't want a "The dir argument must be a directory" error thrown.

@timkelty timkelty requested a review from brandonkelly April 3, 2025 17:34
Comment thread src/utilities/ClearCaches.php
@brandonkelly brandonkelly changed the base branch from 4.15 to 4.x April 4, 2025 17:58
@brandonkelly brandonkelly force-pushed the bugfix/clear-cp-caches branch from a66425c to 03c0f66 Compare April 4, 2025 17:58
[ci skip]
@brandonkelly brandonkelly merged commit a90d3af into 4.x Apr 4, 2025
@brandonkelly brandonkelly deleted the bugfix/clear-cp-caches branch April 4, 2025 18:02
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.

2 participants