diff --git a/kernel/private/classes/ezpcontentpublishingprocess.php b/kernel/private/classes/ezpcontentpublishingprocess.php
index <HASH>..<HASH> 100644
--- a/kernel/private/classes/ezpcontentpublishingprocess.php
+++ b/kernel/private/classes/ezpcontentpublishingprocess.php
@@ -259,6 +259,15 @@ class ezpContentPublishingProcess extends eZPersistentObject
         {
             $this->reset();
         }
+
+        // generate static cache
+        $ini = eZINI::instance();
+        if ( $ini->variable( 'ContentSettings', 'StaticCache' ) == 'enabled' )
+        {
+            $staticCacheHandlerClassName = $ini->variable( 'ContentSettings', 'StaticCacheHandler' );
+            $staticCacheHandlerClassName::executeActions();
+        }
+
         eZScript::instance()->shutdown();
         exit;
     }
Fix EZP-<I>: async publishing should generate static cache

Static cache tasks weren't processed after publishing.

Asynchronous handling doesn't require that static cache
generation is left to the cronjob, since it will happen
after content has been published.

It will however slow publishing down, since publishing
processes will spend some time taking care of static
cache.