Skip to content

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

Closed
@fredrikekelund

Description

@fredrikekelund

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.

Activity

rhukster

rhukster commented on Jan 12, 2017

@rhukster
Member

Fixed in Grav develop - getgrav/grav@e492fbd

fredrikekelund

fredrikekelund commented on Jan 12, 2017

@fredrikekelund
ContributorAuthor

@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

rhukster commented on Jan 12, 2017

@rhukster
Member

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

rhukster

rhukster commented on Jan 12, 2017

@rhukster
Member

You are correct, fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add 'hash' configuration option for cache check method · Issue #923 · getgrav/grav-plugin-admin