-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
I am running in to memory limits when compiling lots of mustache.js templates in one go (for testing purposes). I am wanting to disable mustache's internal cache and implement my own that would remove stale templates. This is currently not possible, the only API seems to be cache clearing. Is it something that has been considered for this project? If not does it seem like it fits with the library? Happy to put in a PR.
Possible workarounds:
- Clear the cache after every component render, this seems inefficient.
- Monkey patch the
Writer.prototype.parsefunction to skip the caching. This is the best current solution but having it as a first class API would be better.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels