Fixed cache invalidation bug.

namespaces
Frode Petterson 2014-05-27 14:12:54 +02:00
parent 2053b43024
commit 27a5c4e2a7
1 changed files with 3 additions and 3 deletions

View File

@ -1036,11 +1036,11 @@ class H5PStorage {
if (isset($library['editorDependencies'])) { if (isset($library['editorDependencies'])) {
$this->h5pF->saveLibraryDependencies($library['libraryId'], $library['editorDependencies'], 'editor'); $this->h5pF->saveLibraryDependencies($library['libraryId'], $library['editorDependencies'], 'editor');
} }
}
// Make sure libraries dependencies, parameter filtering and export files gets regenerated for all content who uses this library. // Make sure libraries dependencies, parameter filtering and export files gets regenerated for all content who uses this library.
$this->h5pF->invalidateContentCache($library['libraryId']); $this->h5pF->invalidateContentCache($library['libraryId']);
} }
}
if (!$skipContent) { if (!$skipContent) {
$current_path = $this->h5pF->getUploadedH5pFolderPath() . DIRECTORY_SEPARATOR . 'content'; $current_path = $this->h5pF->getUploadedH5pFolderPath() . DIRECTORY_SEPARATOR . 'content';