MDL-40545 convert js and theme resources to localcachedir

This commit is contained in:
Petr Škoda
2013-07-20 14:10:25 +02:00
parent 85b3806114
commit cb8108dd22
6 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ $etag = sha1($rev.implode(',', $jsfiles));
// Use the caching only for meaningful revision numbers which prevents future cache poisoning.
if ($rev > 0 and $rev < (time() + 60*60)) {
$candidate = $CFG->cachedir.'/js/'.$etag;
$candidate = $CFG->localcachedir.'/js/'.$etag;
if (file_exists($candidate)) {
if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) || !empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {