PDA

View Full Version : Updating language table for cached phrases


jawatkin
12-18-2007, 08:43 PM
Ok, I've written a short PHP script that runs on my hourly system cron and updates a phrase in the global phrase group. It works just fine... The problem is that there is a cached value for the phrase in the language table in the "phrasegroup_global" field. There's also a couple hundred other phrases in there and I'm really not sure how to "update" this cache. Any help on how to trigger the update on the language table when I update the value of the phrase with my script?

EDIT: Found it. Nm!

require_once('/forum/includes/adminfunctions_language.php');

build_language(-1);