The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
cron Perl modify Notice in mysql
I have a cron job that executes a perl script that modifies one of my Notices's. However,
the changes are not reflected until I manually go into the notice manager and change something. I am seeing I need to update the datastore. //update the datastore notice cache if ($changes) { build_notice_datastore(); } Is there a way I can call this progmatically, or by modifying the notice cache directly? Thanks, Koz |
#2
|
|||
|
|||
Just run the rebuild function:
Code:
require_once(DIR . '/includes/adminfunctions_notice.php'); build_notice_datastore(); |
#3
|
|||
|
|||
I can issue the rebuild comand, but the data is still old.
EDIT: I see I have to rebuild the languages.. I added : build_language(-1); and its throwing this error: Fatal error: Call to undefined function fetch_js_safe_string() require_once(DIR . '/includes/adminfunctions_notice.php'); build_notice_datastore(); require_once(DIR . '/includes/adminfunctions_language.php'); build_language(-1); Edit again: I figured it out...needed to include fetch_js_safe_string include. Thanks, Koz |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|