mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:25:54 +00:00
diskcache: unify naming
This commit is contained in:
@@ -59,14 +59,14 @@ class Af_Proxy_Http extends Plugin {
|
||||
$local_filename = sha1($url);
|
||||
|
||||
if ($this->cache->exists($local_filename)) {
|
||||
header("Location: " . $this->cache->getUrl($local_filename));
|
||||
header("Location: " . $this->cache->get_url($local_filename));
|
||||
return;
|
||||
} else {
|
||||
$data = UrlHelper::fetch(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
|
||||
|
||||
if ($data) {
|
||||
if ($this->cache->put($local_filename, $data)) {
|
||||
header("Location: " . $this->cache->getUrl($local_filename));
|
||||
header("Location: " . $this->cache->get_url($local_filename));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user