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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to easily disable disk-cache #7928

Merged
merged 4 commits into from Feb 20, 2020

Conversation

ashmaroli
Copy link
Member

@ashmaroli ashmaroli commented Dec 5, 2019

This is a 馃檵 feature or enhancement.

  • I've added tests
  • I've adjusted the documentation
  • The test suite passes locally

Summary

Running in safe mode just to disable Jekyll 4.0's disk-caching seems like an overkill.
Plugins would need to be modified to be compatible with safe mode, whitelist gems...

With this change one can disable disk-cache in non-safe mode via either --disable-disk-cache CLI switch or disable_disk_cache: true configuration.

Context

Closes #7804
/cc @Convincible

@DirtyF
Copy link
Member

DirtyF commented Dec 5, 2019

@ashmaroli 馃憤 for the implementation, tests should pass though

Mercenary interprets `--no-*` as a falsy. But we need `disable_disk_cache`
to have a truthy value instead.
Copy link
Member

@DirtyF DirtyF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憣 Perfect.

@ashmaroli ashmaroli added this to the 4.1 milestone Dec 27, 2019
@ashmaroli ashmaroli requested a review from a team February 20, 2020 17:43
Copy link
Member

@mattr- mattr- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dope.

@mattr-
Copy link
Member

mattr- commented Feb 20, 2020

@jekyllbot: merge +minor

@jekyllbot jekyllbot merged commit 558e05e into jekyll:master Feb 20, 2020
jekyllbot added a commit that referenced this pull request Feb 20, 2020
@ashmaroli ashmaroli deleted the skip-disk-cache branch February 20, 2020 17:52
@jekyll jekyll locked and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Disable disk caching, or set cache directories outside of source
4 participants