如何在wordpress网站上偶尔修复会话数据更改到以前的会话数据?

I have some php scripts run on the wordpress website which is a simple admin portal which can show details and edit profile of the records. Those records are stored in MYSQL. After login the records, the details shown correctly. but I click the edit buttom , it shows the other records (most likely the previous logged-in one) sometimes, even the records is logged in by the other devices. Also, the session data will change to the wrong one.

I have tried to clear the cache of wordpress but it did not work. Please advise!! Thanks.