I had a website made for me a long time ago, and the programmer did it in CakePHP. I’m now editing his scripts.
I added a couple columns to a table, and found that doing saveField() on the new column does not do anything. How do I make CakePHP recognize the new columns?
I’d appreciate your help. I’m not too familiar with CakePHP, so please go easy on me =)
The cache data is saved in
YourAppFoloer/tmp/cache/models(delete the files there-in)You can also try
Cache::clear()http://book.cakephp.org/view/1382/Clearing-the-Cache
Edit – this looked horrible in the comment:
You could add it to a controller to call:
function superHandyCacheClearer() {
$this->autoRender = false;
Cache::clear();
}
And call http://www.yourcakeapp.com/yourControllerYouAddedItTo/superHandyCacheClearer – but really, this is when you’re making changes whilst in the code. Deleting the cache folder contents, really, should be the fix