1.53.2 • Published 11 months ago

@nexrender/action-cache v1.53.2

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Action: Cache

Cache your template source to a specified location and reuse it on subsequent runs

Installation

npm i -g @nexrender/action-cache

Usage

When creating your render job provide this module in both of the predownload and postdownload actions:

Additional Params

  • ttl (optional): a time-to-live in milliseconds for which after that the cached item is invalidated
  • cacheAssets (optional): a boolean value that if true will cache the assets used by a job as well. Note that assets with the same filename will overwrite each other in the cache so should be avoided if using assets cache.
// job.json
{
    "actions": {
        "predownload": [
            {
                "module": "@nexrender/action-cache",
                "cacheDirectory": "~/cache",
                "ttl": 3600000
            }
        ],
        "postdownload": [
            {
                "module": "@nexrender/action-cache",
                "cacheDirectory": "~/cache"
            }
        ],
    }
}
1.53.2

11 months ago

1.45.6

2 years ago

1.42.0

2 years ago

1.39.0

3 years ago

1.38.0

3 years ago

1.37.3

3 years ago

1.37.4

3 years ago

1.29.0

4 years ago