Noel,

That's pretty funny; I've done the same exact thing.  It's just kind of
annoying, so I figured it was time to at least present the issue :)

Thanks for the code though!

Ian

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of noel t
Sent: Thursday, December 14, 2006 5:55 PM
To: [email protected]
Subject: [symfony-devs] Re: Symfony error in production mode after clearing
cache


We have this problem too.  I never considered it a big deal, and just 
wrote this shell script:

[ bin]$ cat clearcache.sh
#!/bin/bash

pwd=`pwd`
who=`whoami`
where="$who"

if [ "$who" == "root" ]; then
  where="blah"
  cd /var/www/html/$where/
else
  cd ~/blah/
fi

symfony cc
wget http://yoursite.org/$where/index.php -O /dev/null
cd $pwd

modify as you need...This way I can call symfony cc from anywhere in my 
dev structure, and it'll keep me there. the wget auto fills the cache 
right back up...

Cheers,

Noel

Ian wrote:
> I've had this problem for awhile, so I'll see if anyone else has it
> too.
>
> After I clear the cache (symfony cc), the first load of the application
> in production mode generates an error in my apache error log:
>
> PHP Fatal error:  Cannot redeclare class sflogger in
> path/to/project/cache/app/prod/config/config_core_compile.yml.php on
> line 1058
>
> If I refresh the page, the error is no more and everything is back to
> normal.  It seems that symfony has a problem when trying to re-cache
> the config files. Does anyone have any idea what is causing this to
> happen?
>
>
> >
>   




--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"symfony developers" 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/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to