Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Dec 2009, 03:27
KozmoK KozmoK is offline
 
Join Date: Apr 2008
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
Reply With Quote
  #2  
Old 28 Dec 2009, 04:23
Ted S Ted S is offline
 
Join Date: Dec 2003
Just run the rebuild function:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Ted & the Giftery.me Team

New features released for Product Review Forums 1.3 (4.0)
Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)
Reply With Quote
  #3  
Old 28 Dec 2009, 05:22
KozmoK KozmoK is offline
 
Join Date: Apr 2008
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

Last edited by KozmoK : 29 Dec 2009 at 04:15.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 13:32.

Layout Options | Width: Wide Color: