Skip to content

Commit

Permalink
Fix EZP-23928: Preview cache not being updated
Browse files Browse the repository at this point in the history
> https://jira.ez.no/browse/EZP-23928

When saving a draft (not publishing), preview won't reflect the changes.
A previously cached content is displayed instead.
Only applies if the frontend siteaccess is *not* using `legacy_mode`.

This patch introduces a new `content/cache/version` event.
  • Loading branch information
lolautruche committed Feb 19, 2015
1 parent 97786f2 commit 61a1831
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/content/attribute_edit.php
Expand Up @@ -316,6 +316,10 @@
$object->storeInput( $contentObjectAttributes,
$attributeInputMap );
$db->commit();
ezpEvent::getInstance()->notify(
'content/cache/version',
array( $object->attribute( 'id' ), $version->attribute( 'version' ) )
);
}

$validation['processed'] = true;
Expand Down

0 comments on commit 61a1831

Please sign in to comment.