rename public.php/cached_url to cached

This commit is contained in:
Andrew Dolgov 2021-02-19 20:28:15 +03:00
parent fc0ebf0891
commit 053b262aa7
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ class DiskCache {
} }
public function get_url($filename) { public function get_url($filename) {
return get_self_url_prefix() . "/public.php?op=cached_url&file=" . basename($this->dir) . "/" . basename($filename); return get_self_url_prefix() . "/public.php?op=cached&file=" . basename($this->dir) . "/" . basename($filename);
} }
// check for locally cached (media) URLs and rewrite to local versions // check for locally cached (media) URLs and rewrite to local versions

View File

@ -737,7 +737,7 @@ class Handler_Public extends Handler {
<?php <?php
} }
function cached_url() { function cached() {
list ($cache_dir, $filename) = explode("/", $_GET["file"], 2); list ($cache_dir, $filename) = explode("/", $_GET["file"], 2);
// we do not allow files with extensions at the moment // we do not allow files with extensions at the moment