diff --git a/composer.json b/composer.json
index 59b5004..07bd977 100644
--- a/composer.json
+++ b/composer.json
@@ -1,9 +1,12 @@
 {
-  "name": "bio.logis/html_diff",
+  "name": "drupal/html_diff",
   "description": "Compares two entity revisions visually - like WYSIWYG",
   "type": "drupal-module",
   "license": "GPL-2.0+",
+  "support": {
+    "issues": "https://www.drupal.org/project/issues/html_diff"
+  },
   "require":{
-    "mkalkbrenner/php-htmldiff-advanced": ">=0.0.1"
+    "mkalkbrenner/php-htmldiff-advanced": "~0.0.8"
   }
 }
\ No newline at end of file
diff --git a/src/Controller/HtmlDiffEntityRevisionController.php b/src/Controller/HtmlDiffEntityRevisionController.php
index 3f9609e..f50009c 100644
--- a/src/Controller/HtmlDiffEntityRevisionController.php
+++ b/src/Controller/HtmlDiffEntityRevisionController.php
@@ -8,6 +8,7 @@ namespace Drupal\html_diff\Controller;
 
 use Drupal\Component\Utility\Html;
 use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\PhpStorage\PhpStorageFactory;
 use Drupal\Core\Routing\RouteMatchInterface;
 use Drupal\diff\Controller\GenericRevisionController;
 use Drupal\Core\Url;
@@ -56,6 +57,11 @@ class HtmlDiffEntityRevisionController extends GenericRevisionController {
    */
   public function __construct(DiffFormatter $diff_formatter, DateFormatter $date, PluginManagerInterface $plugin_manager, DiffEntityParser $entityParser, HtmlDiffAdvancedInterface $html_diff) {
     parent::__construct($diff_formatter, $date, $plugin_manager, $entityParser);
+    $storage = PhpStorageFactory::get('html_purifier_serializer');
+    if (!$storage->exists('cache.php')) {
+      $storage->save('cache.php', 'dummy');
+    }
+    $html_diff->setPurifierSerializerCachePath(dirname($storage->getFullPath('cache.php')));
     $this->htmlDiff = $html_diff;
   }
 
diff --git a/src/Controller/HtmlDiffNodeRevisionController.php b/src/Controller/HtmlDiffNodeRevisionController.php
index 01e130f..1c7e256 100644
--- a/src/Controller/HtmlDiffNodeRevisionController.php
+++ b/src/Controller/HtmlDiffNodeRevisionController.php
@@ -3,6 +3,7 @@
 namespace Drupal\html_diff\Controller;
 
 use Drupal\Component\Utility\Html;
+use Drupal\Core\PhpStorage\PhpStorageFactory;
 use Drupal\diff\Controller\NodeRevisionController;
 use Drupal\Core\Url;
 use Drupal\node\NodeInterface;
@@ -52,6 +53,11 @@ class HtmlDiffNodeRevisionController extends NodeRevisionController {
    */
   public function __construct(DiffFormatter $diff_formatter, DateFormatter $date, PluginManagerInterface $plugin_manager, DiffEntityParser $entityParser, HtmlDiffAdvancedInterface $html_diff) {
     parent::__construct($diff_formatter, $date, $plugin_manager, $entityParser);
+    $storage = PhpStorageFactory::get('html_purifier_serializer');
+    if (!$storage->exists('cache.php')) {
+      $storage->save('cache.php', 'dummy');
+    }
+    $html_diff->setPurifierSerializerCachePath(dirname($storage->getFullPath('cache.php')));
     $this->htmlDiff = $html_diff;
   }
 
