MDL-81306 core: Remove docs on use of xsendfile with request dirs

This reverts the change made in MDL-80648 and adds a note to not do it.
This commit is contained in:
Andrew Nicols
2024-03-28 09:29:27 +08:00
parent fa4a79d6d7
commit e72422e42c
+2 -1
View File
@@ -298,10 +298,11 @@ $CFG->admin = 'admin';
// '/dataroot/' => $CFG->dataroot,
// '/cachedir/' => '/var/www/moodle/cache', // for custom $CFG->cachedir locations
// '/localcachedir/' => '/var/local/cache', // for custom $CFG->localcachedir locations
// '/localrequestdir/' => '/tmp', // for custom $CFG->localrequestdir locations
// '/tempdir/' => '/var/www/moodle/temp', // for custom $CFG->tempdir locations
// '/filedir' => '/var/www/moodle/filedir', // for custom $CFG->filedir locations
// );
// Please note: It is *not* possible to use X-Sendfile with the per-request directory.
// The directory is highly likely to have been deleted by the time the web server sends the file.
//
// YUI caching may be sometimes improved by slasharguments:
// $CFG->yuislasharguments = 1;