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

Cached views in subdirectories #5

Open
Murnto opened this issue Aug 1, 2016 · 0 comments
Open

Cached views in subdirectories #5

Murnto opened this issue Aug 1, 2016 · 0 comments

Comments

@Murnto
Copy link

Murnto commented Aug 1, 2016

When caching views with "versions": {"DietUseCache"}, the cached view path is prefixed verbatim with _cached_.

This produces paths like views/_cached_subdirectory/index.dt_[..].d. Such directory is not created during compilation, thus the file is not written and execution will fail unless the directory was created manually.

Cached views should either be placed alongside their source files, or perhaps within their own sub directory for trivial clearing.

schveiguy added a commit to schveiguy/diet-ng that referenced this issue Oct 11, 2019
…eCache is not set, there is no

reason to compute the file hash. And altered the name of the cached file
to be agnostic to subdirectories of the views directory.
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

1 participant