Reputation:
I am working on a project using CakePHP and have been trying to update some views. The file uploads to the server correctly but the system seems to serve the old version. I am kind of new to Cake so I'd appreciate any pointers.
Thanks!
Upvotes: 0
Views: 111
Reputation: 538
The only way to ignore cache of views is uncommenting
Configure::write('Cache.disable', true);
in core.php
Upvotes: 0
Reputation: 28245
Where are you putting the views? Also, make sure the /tmp/cache/
folder doesn't have any lingering crap in it that might be getting rendered.
Edit:
If you set the debug level in config/core.php
to something higher than 0, caching will be disabled and you'll get nice error messages if something poops the bed.
Upvotes: 1
Reputation: 3274
I experienced the same thing. The trick is to clear out all of $YOUR_APP_FOLDER/tmp/cache
when deploying new code, to erase any conflicting cache.
cd $YOUR_APP_FOLDER
rm -f tmp/cache/*/*
Upvotes: 2
Reputation: 10665
It could be that view-caching is enabled, check core.php for
define ('CACHE_CHECK', true);
Upvotes: 1