Skip to content

Support per file cache to allow concurrent build #14

@Congelli501

Description

@Congelli501

Currently, the cache file is a big monolithic file.

I would like to run concurrent builds that share a lot of file in common, and use the same cache for all of them.
A good way to do it would be to provide a cachePath option, in which browserify-cache-api would write files named by the hash of the original file path.

To allow concurrent run and prevent the use of partially written cache file, each file could be written as . and then, when the file is fully written, rename it to .
As rename operations are atomic file system operations, there won't be bad cached data.

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