imported_silkroad
12-06-2009, 07:28 AM
Hello,
I have script that runs this command against the vB database to update one of the $vbphrases:
UPDATE phrase SET text='www.mybackup.com' WHERE varname='backup_server';
It updates the database just fine, and I can see the new phrase text in the AdminCP, but the old text still shows up in the output.
If I manually change the phrase text in the AdminCP it works fine; however if I do it from my one line MySQL UPDATE, it updates the dB but it does not seem to flush some cache or update right in the templates.
Is there another command I need to issue to flush a cache or something?
I am lost as to why the dB updates with my MySQL query but it does not work; but it works if I do it in the AdminCP.
Thanks.
--------------- Added 1260092793 at 1260092793 ---------------
Looking at phrase.php, I noticed that vB actually deleted the old phrase and inserts and new one, incrementing the phraseid and dateline (timestamp).
I guess that is the reason a simple UPDATE to the dB does not work.
I have script that runs this command against the vB database to update one of the $vbphrases:
UPDATE phrase SET text='www.mybackup.com' WHERE varname='backup_server';
It updates the database just fine, and I can see the new phrase text in the AdminCP, but the old text still shows up in the output.
If I manually change the phrase text in the AdminCP it works fine; however if I do it from my one line MySQL UPDATE, it updates the dB but it does not seem to flush some cache or update right in the templates.
Is there another command I need to issue to flush a cache or something?
I am lost as to why the dB updates with my MySQL query but it does not work; but it works if I do it in the AdminCP.
Thanks.
--------------- Added 1260092793 at 1260092793 ---------------
Looking at phrase.php, I noticed that vB actually deleted the old phrase and inserts and new one, incrementing the phraseid and dateline (timestamp).
I guess that is the reason a simple UPDATE to the dB does not work.