* Changed default update delay to twelve hours, and enforced a minimum
delay of one hour.
This commit is contained in:
@ -278,7 +278,7 @@ public class BlogManager {
|
||||
|
||||
public String getDefaultProxyHost() { return _context.getProperty("syndie.defaultProxyHost", ""); }
|
||||
public String getDefaultProxyPort() { return _context.getProperty("syndie.defaultProxyPort", ""); }
|
||||
public int getUpdateDelay() { return Integer.parseInt(_context.getProperty("syndie.updateDelay", "1")); }
|
||||
public int getUpdateDelay() { return Integer.parseInt(_context.getProperty("syndie.updateDelay", "12")); }
|
||||
public String[] getUpdateArchives() { return _context.getProperty("syndie.updateArchives", "").split(","); }
|
||||
|
||||
public boolean authorizeAdmin(String pass) {
|
||||
|
@ -46,6 +46,7 @@ public class Updater {
|
||||
|
||||
while (true) {
|
||||
int delay = BlogManager.instance().getUpdateDelay();
|
||||
if (delay < 1) delay = 1;
|
||||
update();
|
||||
try {
|
||||
synchronized (this) {
|
||||
|
@ -1,4 +1,8 @@
|
||||
$Id: history.txt,v 1.277 2005/10/01 14:20:10 jrandom Exp $
|
||||
$Id: history.txt,v 1.278 2005/10/03 13:55:10 ragnarok Exp $
|
||||
|
||||
2005-10-03 rangarok
|
||||
* Changed default update delay to twelve hours, and enforced a minimum
|
||||
delay of one hour.
|
||||
|
||||
2005-10-03 ragnarok
|
||||
* Implemented a Syndie auto-updater. It will automatically pull new posts
|
||||
|
Reference in New Issue
Block a user