From 27a5c4e2a7782607b6157b842526f4a380ca942d Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 27 May 2014 14:12:54 +0200 Subject: [PATCH] Fixed cache invalidation bug. --- h5p.classes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 47f2e34..44e9aba 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1036,10 +1036,10 @@ class H5PStorage { if (isset($library['editorDependencies'])) { $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. + $this->h5pF->invalidateContentCache($library['libraryId']); } - - // Make sure libraries dependencies, parameter filtering and export files gets regenerated for all content who uses this library. - $this->h5pF->invalidateContentCache($library['libraryId']); } if (!$skipContent) {