Skip to content

Cache all files, folders, sub-folders within a directory #12

@jeremyzilar

Description

@jeremyzilar

So I am looking to cache a lot of the files we rarely touch in our site... most of which exist in static/media/files/.
Our site runs on HUGO. Here is the repo: https://github.com/brooklynrail/brooklynrail-platform

But when I add the path to the plugin

[[plugins]]

  package = "netlify-plugin-cache"
    [plugins.inputs]
    paths = ["public", "static/media/files"]

The number of files that Netlify says it has cached between both paths is around 22, which is odd since there are more than 22 files in those folders. I think it might be counting the folders directly below each?

Should I be specifying all files within this dir, like static/media/files/*?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions