PDA

View Full Version : Force Update of Forumcache from External Application


regli
05-28-2007, 04:13 AM
I am inserting forums into vB from an external application on the fly. The problem is that they aren't reflected in forumcache meaning they don't show up for a vB user.

Once I update a forum in admincp they happily show up and become usable.

Does anybody know of a way to force a forumcache update from an external application or through cron?

Any help would be greatly appreciated.

Thanks a lot.

Breakpoint
09-03-2011, 09:34 PM
I need help here also

kh99
09-03-2011, 10:38 PM
If you look at includes/class_dm_forum.php, functions post_save_once() and post_save_each(), you'll see that there's a number of things that are done whenever the forum info is changed. I don't know what they all do exactly, but it looks like the function build_forum_permissions() in includes/adminfunctions.php is what rebuilds the forum cache. Maybe you can figure out a way to use the forum data manager so that you don't have to worry about the details.