0

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!

4 Answers 4

2

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/*/*
Sign up to request clarification or add additional context in comments.

Comments

1

It could be that view-caching is enabled, check core.php for

define ('CACHE_CHECK', true);

Comments

1

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.

Comments

0

The only way to ignore cache of views is uncommenting

Configure::write('Cache.disable', true);

in core.php

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.