Polish "Evaluate key only if necessary"

See gh-22769
This commit is contained in:
Stephane Nicoll
2023-07-14 10:23:25 +02:00
parent 806c83591c
commit d8854a2f3f
8 changed files with 40 additions and 64 deletions

View File

@@ -54,6 +54,7 @@
<cache:cache-put method="multiUpdate" cache="primary"/>
<cache:cache-put method="multiUpdate" cache="secondary"/>
<cache:cache-put method="putRefersToResult" cache="primary" key="#result.id"/>
<cache:cache-put method="putEvaluatesUnlessBeforeKey" cache="primary" key="#result.id" unless="#result == null"/>
</cache:caching>
</cache:advice>
@@ -93,6 +94,7 @@
<cache:cache-put method="multiUpdate" cache="primary"/>
<cache:cache-put method="multiUpdate" cache="secondary"/>
<cache:cache-put method="putRefersToResult" cache="primary" key="#result.id"/>
<cache:cache-put method="putEvaluatesUnlessBeforeKey" cache="primary" key="#result.id" unless="#result == null"/>
</cache:caching>
</cache:advice>