I use mall_price when managing Alice cards and credits. The first time I run the script during a session it clearly is updating prices because it generates lots of "Searching for" and "Search complete' messages. The second time I run the script it appears to be using cached values because the messages are not there and prices displayed by the script do not change even though I have made mall purchases between script invocations which as far as I can tell should change the "fifth lowest price". The wiki description says
If I log out of KoLmafia and then log back in then I get new prices.
Is the wiki correct? If so then this query will probably lead to a Bug Report.
If the wiki is not correct is there a way to force a refresh/reprice/cache invalidation for one or more items? My preference would be something I could script although I understand that doing so could result in unnecessary server hits. In this particular case I do a manual buy from the Purchases tab. The act of buying does not invalidate the cache, but maybe it should? I would also be glad to buy the items and then refresh the Search after purchases is that would clear the cache.
My hypothesis is that the prices are cached and the cache is not being invalidated and updated after an item is purchased but maybe something else is going on? I also understand that a deliberate decision not to refresh the cache during a session might have been made to prevent mall botting, and I can live with that if it is the case.
I have "Share recent mall price data with other users" checked. Perhaps there is an interaction that I am not grasping?
Bottom line - how can I force mall_price to update for a single item the second time it is called for that item in a session?
Thanks.
which does not seem to be what is happening for me.This function runs a new check each time it is called, so if you call this function and then purchase some of shop_for in the mall, calling this function again will return the new price of the item
If I log out of KoLmafia and then log back in then I get new prices.
Is the wiki correct? If so then this query will probably lead to a Bug Report.
If the wiki is not correct is there a way to force a refresh/reprice/cache invalidation for one or more items? My preference would be something I could script although I understand that doing so could result in unnecessary server hits. In this particular case I do a manual buy from the Purchases tab. The act of buying does not invalidate the cache, but maybe it should? I would also be glad to buy the items and then refresh the Search after purchases is that would clear the cache.
My hypothesis is that the prices are cached and the cache is not being invalidated and updated after an item is purchased but maybe something else is going on? I also understand that a deliberate decision not to refresh the cache during a session might have been made to prevent mall botting, and I can live with that if it is the case.
I have "Share recent mall price data with other users" checked. Perhaps there is an interaction that I am not grasping?
Bottom line - how can I force mall_price to update for a single item the second time it is called for that item in a session?
Thanks.