Reputation: 103
When I try to get data from PriceDiscTable I get old data. In this case I need to reconnect or disable cache in table properties (CacheLookup).
How can I get correct data without disabling CacheLookup property?
I tried
priceDiscTable.disableCache(true);
but problem still exist.
Upvotes: 0
Views: 582
Reputation: 103
I changed code to
priceDiscTable.disableCache(true);
priceDiscTable.reread();
I restarted AOS clear all caches and *.auc files
Now it works fine
Upvotes: 0
Reputation: 11544
Try priceDiscTable.reread()
. This will query the database to reread the record.
Upvotes: 1