Describe the problem you’re having:
When running update.php manually to debug a feed, --debug-force-refetch and --debug-force-rehash don’t work.
I’m pretty sure that when the options chanted from --force-refetch to --debug-force-refetch in commit 74391ec30a7a76fb4774d12b41a033f146518db8 the checking code didn’t change.
Include steps to reproduce the problem:
Try to use update.php --debug-force-refetch, put a var_dump right at line 348 of options, see that “debug-force-refetch” is set, not “force-refetch”
Fix:
diff --git a/update.php b/update.php
index 0fe4402e3..adab6b95b 100755
--- a/update.php
+++ b/update.php
@@ -345,8 +345,8 @@
if (isset($options["debug-feed"])) {
$feed = (int) $options["debug-feed"];
- if (isset($options["force-refetch"])) $_REQUEST["force_refetch"] = true;
- if (isset($options["force-rehash"])) $_REQUEST["force_rehash"] = true;
+ if (isset($options["debug-force-refetch"])) $_REQUEST["force_refetch"] = true;
+ if (isset($options["debug-force-rehash"])) $_REQUEST["force_rehash"] = true;
Debug::set_loglevel(Debug::$LOG_EXTENDED);
…
tt-rss version (including git commit id): v21.09-b88a80592, based off commit ed927dbd2b54aaabe6be75f9fcf4145e2c3249a
The only difference is that I have a commit for my symlink from plugins/af_comics/filters.local to something in my plugins.local git repo.
…
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Debian buster(oops), php 7.3.29-1~deb10u1
fox
2
can you file a pr? thanks for reporting.
Thanks for just doing it, I was having trouble finding time to sit down and create an account and all that.
Many thanks for maintaining ttrss.