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

use temp directory for xslate cache #3216

Merged
merged 1 commit into from
Oct 29, 2024
Merged

use temp directory for xslate cache #3216

merged 1 commit into from
Oct 29, 2024

Conversation

haarg
Copy link
Member

@haarg haarg commented Oct 28, 2024

We were already deleting the xslate cache directory on startup, because it was having problems with refreshing the templates properly. And in a deployment, we don't have any permanent storage anyway. So we can just use a temp directory for the cache.

Since we aren't caching templates anymore, we no longer need the var directory.

Fixes #3215

We were already deleting the xslate cache directory on startup, because
it was having problems with refreshing the templates properly. And in a
deployment, we don't have any permanent storage anyway. So we can just
use a temp directory for the cache.

Since we aren't caching templates anymore, we no longer need the var
directory.
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.10%. Comparing base (9aee844) to head (1129935).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3216      +/-   ##
==========================================
- Coverage   73.17%   73.10%   -0.08%     
==========================================
  Files          69       69              
  Lines        2397     2398       +1     
  Branches      338      338              
==========================================
- Hits         1754     1753       -1     
- Misses        516      517       +1     
- Partials      127      128       +1     
Files with missing lines Coverage Δ
lib/MetaCPAN/Web/View/Xslate.pm 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@oalders oalders merged commit 1f9ff3e into master Oct 29, 2024
11 checks passed
@oalders oalders deleted the haarg/cache-in-tmp branch October 29, 2024 16:19
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.

Couldn't render template "mkdir /app/var/tmp: Permission denied
2 participants