Presumably this relates to this other post.
The defaults for these settings are:
- $CFG->tempdir = "$CFG->dataroot/temp"
- $CFG->cachedir = "$CFG->dataroot/cache"
- $CFG->localcachedir = "$CFG->dataroot/localcache"
Where $CFG->dataroot is the Moodledata directory. You would normally only change these settings if the site used multiple web servers, or "nodes", as the comments in config-dist.php say:
// It is possible to specify different cache and temp directories, use local fast filesystem
// for normal web servers. Server clusters MUST use shared filesystem for cachedir!
// Localcachedir is intended for server clusters, it does not have to be shared by cluster nodes.