fix: update CACHE_DIR for vercel#885
Open
Chaitanya-Keyal wants to merge 1 commit intoDenverCoder1:vercelfrom
Open
fix: update CACHE_DIR for vercel#885Chaitanya-Keyal wants to merge 1 commit intoDenverCoder1:vercelfrom
CACHE_DIR for vercel#885Chaitanya-Keyal wants to merge 1 commit intoDenverCoder1:vercelfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the
vercelbranch to use a cache directory compatible with Vercel’s serverless runtime.What changed
api/cache.php, changed the cache directory from a project-relative path to/tmp/cache.mkdir(): Read-only file systemwarnings when deploying on Vercel, since the project filesystem is read-only and/tmpis the only writable location.Why
After the recent cache update, the following warnings showed up on my Vercel deployment due to which the card stopped rendering properly on my github readme:
/tmp/cacheallows the file-based cache to work during a function’s lifetime without requiring any additional configuration from users.Notes
vercelbranch only.CACHE_DIR), but this PR keeps the fix minimal.Type of change
How Has This Been Tested?
composer testChecklist