fixed reversed sold items and rtbs and moved clean cache config on the end