mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
53b884ec2b
refs https://github.com/TryGhost/Team/issues/211 Previous code was creating a new ajv instance for each call, as well as loading the schemas, which are cached. This was causing a memory leak as ajv caches all schemas. We've replaced it with one instance of ajv, and conditionally loading/compiling the schemas if they haven't been seen before. |
||
---|---|---|
.. | ||
serializers | ||
validators | ||
index.js | ||
permissions.js |