the TEMP_FILE, keeping track of intermedia changes wasn't necessarily keeping track of all the data I wanted it to, it could behave randomly and it will give you redundant data, and you lose novel data. so no I introduced a new TEMP_FILE_1 (TEMP_FILE new name) and a TEMP_FILE_2 .
TEMP_FILE_1 will as usual, like before, contain all the yet-to-be-converted-into-a-single-array data and TEMP_FILE_2 will be a used to keep track of LAST_POST_ID in the current request scope.