PixivBridge caching, how does it work? #4560
Replies: 6 comments 1 reply
-
|
Caching in PixivBridge is intended to store image files locally on the server rather than linking directly to Pixiv, which is necessary to satisfy the Referer header requirement. Verify that your If caching is not functioning as expected, inspect the RSS-Bridge logs in debug mode for cache-related errors and ensure the cache directory is accessible. In cases where caching cannot be achieved due to server restrictions, an external image proxy remains a fallback, albeit with increased latency. |
Beta Was this translation helpful? Give feedback.
-
|
It turns out I hadn't configured sqlite properly, as the default As for logs, the debug mode was removed in 81ce9c9 and setting |
Beta Was this translation helpful? Give feedback.
-
|
Yep cache file is relative to the |
Beta Was this translation helpful? Give feedback.
-
|
Setting system env to Additionally, debug log records can also be recorded like this: diff --git a/lib/dependencies.php b/lib/dependencies.php
index dfaa828b..0eb144b4 100644
--- a/lib/dependencies.php
+++ b/lib/dependencies.php
@@ -56,7 +56,7 @@ $container['logger'] = function () {
// $logger->addHandler(new StreamHandler('/tmp/rss-bridge.log', Logger::INFO));
// Uncomment this for debug logging to fs
- // $logger->addHandler(new StreamHandler('/tmp/rss-bridge-debug.log', Logger::DEBUG));
+ $logger->addHandler(new StreamHandler('/tmp/rss-bridge-debug.log', Logger::DEBUG));
return $logger;
};
|
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately, there is very little debug log records. Rarely used. |
Beta Was this translation helpful? Give feedback.
-
|
I can't figure out how to make the change persistent in docker, since if I restart the docker to apply the change, the change is no longer there. Also there was absolutely nothing in the nginx logs, not even access logs.. The only logs I can find is the docker one, which only shows this: the last line being me fetching the page for a pixiv account oh wait, I think I finally got some debug messages, but they're irrelevant to this issue: So in conclusion, I am getting debug messages but there's none about cache having issues. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
The docs state:
and then only goes on how to disable caching, but I can't seem to get caching to be turned on.
I am assuming having it on would make images be cached on the server instead of linking directly to pixiv, but perhaps this is incorrect?
I have cache type set to sqlite and the timeout seems to make absolutely no difference.
I currently have to use an image proxy but it is very slow and I'd rather not have to do that.
Beta Was this translation helpful? Give feedback.
All reactions