Set the cacheid before to avoid resetting it everytime.