diff options
author | Andrew Dolgov <[email protected]> | 2012-10-30 15:18:46 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-30 15:18:46 +0400 |
commit | 120c2b016fcdd018c08341bf269483dc3a453fd0 (patch) | |
tree | b82d5f23c85f5c8046997c0c24e25ed715118395 | |
parent | e8291805dd99e0f6047edbb1ea162c1f3af3d0ee (diff) |
add update.php -force-update
-rwxr-xr-x | update.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/update.php b/update.php index 6e23892e2..080942736 100755 --- a/update.php +++ b/update.php @@ -52,6 +52,7 @@ print " -quiet - don't show messages\n"; print " -indexes - recreate missing schema indexes\n"; print " -convert-filters - convert type1 filters to type2\n"; + print " -force-update - force update of all feeds\n"; print " -help - show this help\n"; return; } @@ -289,6 +290,13 @@ } + if (in_array("-force-update", $op)) { + _debug("marking all feeds as needing update..."); + + db_query($link, "UPDATE ttrss_feeds SET last_update_started = '1970-01-01', + last_updated = '1970-01-01'"); + } + db_close($link); if ($lock_handle != false) { |