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 authored and JPSchellenberg committed Jan 11, 2021
1 parent 9f19067 commit ec5082f
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 ec5082f

Please sign in to comment.