Skip to content

Commit

Permalink
New: Get rid of global cache identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Feb 20, 2021
1 parent d61ad7f commit 8f80148
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
17 changes: 17 additions & 0 deletions Resources/Private/Fusion/Component/TrackingCode.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,21 @@ prototype(Carbon.Plausible:Component.TrackingCode) < prototype(Neos.Fusion:Compo
</script>
`
}
@cache {
mode = 'dynamic'
maximumLifetime = 0
entryIdentifier {
node = ${node}
site = ${site}
}
entryDiscriminator = ${request.httpRequest.cookieParams.disabledPlausible ? 'disablePlausible' : 'enablePlausible'}
context {
1 = 'node'
2 = 'documentNode'
3 = 'site'
}
entryTags {
1 = ${Neos.Caching.nodeTag(node)}
}
}
}

This file was deleted.

4 changes: 4 additions & 0 deletions Resources/Private/Modules/Component/Markup.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ prototype(Carbon.Plausible:Component.Markup) < prototype(Carbon.Plausible:Compon
</p>
</div>
`

@cache {
mode = 'embed'
}
}

0 comments on commit 8f80148

Please sign in to comment.