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-20 22:59:28 +08:00
parent c895def59b
commit 15cc82b41c
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -315,10 +315,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;