...
Wiki Markup |
---|
{{100: \*true\* => look = "fun" \[com.webobjects.directtoweb.Assignment\]}} {{105: session.user.isAdmin => look = "pro" \[com.webobjects.directtoweb.Assignment\]}} |
For the sake of this discussion, let us assume our D2W app is only using Apple's D2W framework (Despite the fact that we are referencing a custom wonder assignment in our chaining). You first visit your 'edit' page for the entity 'Foo' and get the 'fun' template. Now you log in and return to the 'edit' page for the entity 'Foo' and discover the look is stuck on 'fun'. You cannot get the edit foo page to switch to your 'pro' look! This happens because the rule system caches key values for performance. Once a key is evaluated, the rule system may cache it and reuse that value. To resolve this issue, and others like it, you need to understand rule system caching.
...