1212use Neos \Flow \Annotations as Flow ;
1313use Flowpack \Prunner \PrunnerApiService ;
1414use Flowpack \Prunner \ValueObject \PipelineName ;
15- use Neos \Fusion \Core \Cache \ContentCache ;
1615
1716/**
1817 * @Flow\Scope("singleton")
1918 */
2019class ContentReleaseManager
2120{
22- /**
23- * @Flow\Inject
24- * @var ContentCache
25- */
26- protected $ contentCache ;
2721
2822 /**
2923 * @Flow\Inject
@@ -61,6 +55,7 @@ public function startIncrementalContentRelease(string $currentContentReleaseId =
6155 'currentContentReleaseId ' => $ currentContentReleaseId ?: self ::NO_PREVIOUS_RELEASE ,
6256 'validate ' => true ,
6357 'workspaceName ' => $ workspace ? $ workspace ->getName () : 'live ' ,
58+ 'flushContentCache ' => false ,
6459 ]));
6560 return $ contentReleaseId ;
6661 }
@@ -74,12 +69,12 @@ public function startFullContentRelease(bool $validate = true, string $currentCo
7469 }
7570
7671 $ contentReleaseId = ContentReleaseIdentifier::create ();
77- $ this ->contentCache ->flush ();
7872 $ this ->prunnerApiService ->schedulePipeline (PipelineName::create ('do_content_release ' ), array_merge ($ additionalVariables , [
7973 'contentReleaseId ' => $ contentReleaseId ,
8074 'currentContentReleaseId ' => $ currentContentReleaseId ?: self ::NO_PREVIOUS_RELEASE ,
8175 'validate ' => $ validate ,
8276 'workspaceName ' => $ workspace ? $ workspace ->getName () : 'live ' ,
77+ 'flushContentCache ' => true ,
8378 ]));
8479 return $ contentReleaseId ;
8580 }
0 commit comments