Hi! I have a site running CakePHP v3, and we’re delivering meals to the elderly/vulnerable people in the midst of coronavirus, and a weird behavior I see from time seems to be rearing its ugly head again.
Basically, I have a dev server and a prod server, and I just added a column to my postgres database, and on dev, everything works fine, but on prod, it seems to ignore the fact I just added a new column. By this I mean, I try to select that column’s value, and on dev it populates, but on prod it returns null.
I am guessing it has something to do with model caching. It is possible that I have some other error, but I have seen this a couple other times and never did figure it out back then. I tried deleting the relevant model file in my tmp/cache directory but it didn’t seem to do anything.
Does this sound familiar to anyone else? Worst case I can probably just stick the relevant data into a column that already exists that I’m not using, but that’s bad practice obviously