On 9/11/06, zipman <[EMAIL PROTECTED]> wrote:
>
> I have a model and I save some data through a form in the according
> table.
> The problem is that when I go to the link that regards the function
> that retrieves
> the data from the database and just presents them, the new data are not
> shown,
> even though they exist in the database. Only when i refresh the page
> through
> the browser the new data are shown.
>
> Is there any way to prevent this from happening,because it really is a
> big problem?
>

Cranky Developer to the rescue!

Make sure that you've set debug to 1 in app/config/core.php, and then
delete the model cache files in /app/tmp/cache/models

When debug is set to 0, it acts like it's in production.  When you're
building something, you always want to set debug to 1 or higher to
make sure nothing gets cached.

Hope that helps.

-- 
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to