Skip to content

Commit 9ef5dcd

Browse files
committed
BUGFIX: Adapt cache flushing to Neos 9 cache flushing
1 parent d421298 commit 9ef5dcd

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

Classes/Aspects/ContentCacheAspect.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@ public function grabUncachedSegment(JoinPointInterface $joinPoint)
3636
}
3737

3838
/**
39-
* @Flow\Before("method(Neos\Neos\Fusion\Cache\ContentCacheFlusher->shutdownObject())")
39+
* @Flow\Before("method(Neos\Neos\Fusion\Cache\ContentCacheFlusher->flushTagsImmediately())")
4040
* @param JoinPointInterface $joinPoint
4141
*
4242
* @throws \Neos\Utility\Exception\PropertyNotAccessibleException
4343
*/
4444
public function interceptNodeCacheFlush(JoinPointInterface $joinPoint)
4545
{
46-
$object = $joinPoint->getProxy();
47-
48-
$tags = ObjectAccess::getProperty($object, 'tagsToFlush', true);
46+
$tags = $joinPoint->getMethodArgument('tagsToFlush');
4947
$tags = array_map([$this, 'sanitizeTag'], array_keys($tags));
5048
$this->cacheFrontend->flushByTags($tags);
5149
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It works by checking if a page is fully cachable and in that case caching the w
88
Settings
99
--------
1010

11-
Two settings are available to you to influence the behavior.
11+
Following settings are available to influence the behavior:
1212

1313
```yaml
1414
Flowpack:

0 commit comments

Comments
 (0)