Skip to content

Commit

Permalink
feat(server): in-memory cache speeds up editor load times (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sr258 committed Jan 5, 2021
1 parent 5ef7523 commit 7e2a35b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/boot/createH5PEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export default async function createH5PEditor(
const h5pEditor = new H5P.H5PEditor(
new H5P.fsImplementations.InMemoryStorage(), // this is a general-purpose cache
config,
new H5P.fsImplementations.FileLibraryStorage(localLibraryPath),
new H5P.cacheImplementations.CachedLibraryStorage(
new H5P.fsImplementations.FileLibraryStorage(localLibraryPath)
),
new H5P.fsImplementations.FileContentStorage(localContentPath),
new H5P.fsImplementations.DirectoryTemporaryFileStorage(
localTemporaryPath
Expand Down

0 comments on commit 7e2a35b

Please sign in to comment.