Skip to main content

Data from app manager NodeJS API different from Port Call

Comments

4 comments

  • pharmHalo
    More Testing results: So I created 2 'port' nodes and 2 app manager controlled nodes. Eg. I'm running 4 nodes, all using the same original copied folder Thus same DB access, same user, same data everything. All running: - I ran a call to get some record data (record 1716) - All gave the same response - I then manually altered some data in the record using mysql workbench, thus ensuring the data was changed straight in the DB. - I than ran the SAME call as first step on each api. .... Results: - Both Port nodes updated and correct - both app manager API nodes still had the same data before my change! I then went to app manager and disabled the nodes and reenabled./ Ran the call on the same two nodes and the data was correct... So its like they have the data from the db and just sit there and thats it. It's like the app manager nodes are looking at a snapshot of the DB from when they wre booted???
    0
  • cPanelAnthony
    Hello! Just to confirm, did the issue permanently resolve after disabling and re-enabling? Or did i only update it that once while the error still persists on repeated testing attempts?
    0
  • pharmHalo
    Hi Anthony, So I have figured it out (I believe). The issue is the ngnix cache. The cache is receiving a request and caching it, then when asked again it uses that same data instead of using new data from the DB.. I have turned off the cache and this has fixed the issue.
    0
  • cPanelAnthony
    I am happy to hear you resolved this!
    0

Please sign in to leave a comment.