We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc2da4 commit 5b55945Copy full SHA for 5b55945
1 file changed
Helper/PageHelper.php
@@ -230,6 +230,12 @@ public function makePageSnapshot(PageInterface $page)
230
$snapshotContentRoute->setPath(self::getPageRoutePath($page->getPath()));
231
$snapshotContentRoute->setObjectId($pageSnapshot->getId());
232
233
+ if($oldPageSnapshot && ($oldPageSnapshot->getPath() != self::getPageRoutePath($page->getPath()))){
234
+ /** @var \Networking\InitCmsBundle\Lib\PhpCacheInterface $phpCache */
235
+ $phpCache = $this->getService('networking_init_cms.lib.php_cache');
236
+ $phpCache->clean();
237
+ }
238
+
239
$em->persist($snapshotContentRoute);
240
$em->flush();
241
}
0 commit comments