forked from blallo/rss-bridge
Merge branch 'ImproveFileCaching' of https://github.com/logmanoriginal/rss-bridge
This commit is contained in:
commit
4959334f9f
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ class FileCache extends CacheAbstract{
|
|||
$this->isPrepareCache();
|
||||
|
||||
$stringToEncode = $_SERVER['REQUEST_URI'] . http_build_query($this->param);
|
||||
$stringToEncode = preg_replace('/(\?|&)format=[^&]*/i', '$1', $stringToEncode);
|
||||
return hash('sha1', $stringToEncode) . '.cache';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue