Got it.
The cache issue was one of the problems that was fixed by cleaning the files in the tmp / cache directory.
Training - If you make changes to the mysql schema (add a new table / column, etc.) In mysql, empty the tmp / cache directory or set the debug level to 3 and refresh the page and set the debug level back to 0 (if in production).
I also received a save error - mysql server left because wait_timeout was 600 seconds in configs. But my script took longer. Therefore model-> save () did not work.
In my.cnf, I updated the timeout to 4800 and restarted mysql and it fixed the problem.
source share