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

Add 'hash' configuration option for cache check method #923

Closed
fredrikekelund opened this issue Jan 12, 2017 · 4 comments
Closed

Add 'hash' configuration option for cache check method #923

fredrikekelund opened this issue Jan 12, 2017 · 4 comments

Comments

@fredrikekelund
Copy link
Contributor

It seems Grav supports a 'hash' cache check method, that looks at folder contents in their entirety, and generates an MD5 hash from the combined list of mtimes. See getgrav/grav@c718b8f for more details.

There should probably be an option in the admin panel for this 'hash' option.

@rhukster
Copy link
Member

Fixed in Grav develop - getgrav/grav@e492fbd

@fredrikekelund
Copy link
Contributor Author

@rhukster great! I like the fact that you added a bit more descriptive labels for the different options as well. Just a question, though – will the file cache check method really take media files into account? From looking at the source code for the Folder::lastModifiedFile method, it looks like it only takes .md and .yaml files into consideration?

@rhukster
Copy link
Member

You are correct! I misremembered. Probably should of checked first :) Will fix

@rhukster
Copy link
Member

You are correct, fixed.

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

No branches or pull requests

2 participants