Posted: 26 Oct 2015 13:01 EDT Last activity: 29 Apr 2016 12:46 EDT
Clearing rules cache - HRServices app references deleted or old section rules
I am having a problem with my HR Services app referencing old section rules or ones that have been deleted.
I am trying to complete the "Building Dynamic User Interfaces Section". If I make an update to a section from a flow action, PRPC always seem to display an old version of the rule. Even if I delete the section rule, it still displays the old rule. I am pretty sure I am referencing things correctly as when I use the UI inspector it takes me to the correct version or lets me know the rule can't be found.
Is there a way to clear/reset a rules cache? Or revalidate or refresh my ruleset?
I doubt this has anything to do with an issue in Pega's rule cache. I have outlined the most likely scenario of what is happenning below:
You have a section that then contains a section include, so lets say Section A has a Section include that includes Section B. You could have Section A open in one tab and section B open in another tab. When you save Section A it also saves Section B as it exists in that tab. What this means is section B can now be edited and saved in two different tabs independent from each other, so if you make changes to Section B (in the tab where it is directly open NOT the Section A tab) now save Section B. Meanwhile the Section A tab still still reflects Section B's earlier state, if you now hit save in Section A tab you will save Section B in its earlier state overwriting the changes you m,ade in the Section B tab.
In the lab this is further complicated because you have 3 sections Medical, Dental and Vision which each has an include to HealthcareBenefits. If you have more than one of these 3 open at the same time each can rewrite the HealthcareBenefits section with its cached version when saved.