aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Feed.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 5f9212b41..50495a361 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -899,7 +899,11 @@ class FreshRSS_Feed extends Minz_Model {
*/
public function cacheFilename(string $url = ''): string {
$simplePie = customSimplePie($this->attributes(), $this->curlOptions());
- $url = $url ?: htmlspecialchars_decode($this->url);
+ if ($url !== '') {
+ $filename = $simplePie->get_cache_filename($url);
+ return CACHE_PATH . '/' . $filename . '.html';
+ }
+ $url = htmlspecialchars_decode($this->url);
$filename = $simplePie->get_cache_filename($url);
if ($this->kind === FreshRSS_Feed::KIND_HTML_XPATH) {
return CACHE_PATH . '/' . $filename . '.html';