Scheduled Locking/Pruning [message #4842] |
Fri, 09 August 2002 12:51 |
ctbk
Messages: 142 Registered: April 2002 Location: Milan, Italy
Karma: 0
|
Senior Member |
|
|
I need to run each night a script who locks unactive topics and removes oldest ones from the DB...
I can modify the DB without problem, but I suspect I have to run "check forum consistency" afterwards. How can I do it from a script?
Later,
Ste
~
~
:wq
[Updated on: Fri, 09 August 2002 12:53] Report message to a moderator
|
|
|
Re: Scheduled Locking/Pruning [message #4843 is a reply to message #4842] |
Fri, 09 August 2002 13:24 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you use Forum's functions to remove & lock topics you do not need to run the consistency checker. The consistency will be maintained automatically.
FUDforum Core Developer
|
|
|
Re: Scheduled Locking/Pruning [message #4844 is a reply to message #4843] |
Fri, 09 August 2002 14:00 |
ctbk
Messages: 142 Registered: April 2002 Location: Milan, Italy
Karma: 0
|
Senior Member |
|
|
prottoss wrote on Fri, 09 August 2002 15:24 | If you use Forum's functions to remove & lock topics you do not need to run the consistency checker. The consistency will be maintained automatically.
|
I think you are saying to make a php script using fud functions...
Mh... the fact is I have python scripts made to work with xmb, and I wanted to re-use them without rewriting too much.
Well, I could write something in php after all.
If you want to, I could post those scripts (once made).
later,
Ste
~
~
:wq
|
|
|
Re: Scheduled Locking/Pruning [message #4845 is a reply to message #4844] |
Fri, 09 August 2002 14:32 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I do not use Python so for my perpouses that would be quite useless.
If you are just going to be deleting data from MySQL then you indeed need to run the consistency checker. You can do that by making a copy of the php script and removing the auth code from it and then using python (?) doing exec( php -q script_name ) to run it.
FUDforum Core Developer
|
|
|