Jet\Autoloader_Cache_Backend_Files

This is the default backend cache autoloader. For more information, see the linked chapters.

First of all, here is some important information about the backend itself:

  • As a repository, soubot ~/cache/autoloader_class_map.php is used. The directory is specified by configuring SysConf_Path::getCache().
  • Yes, the data is stored in a PHP file and its form is an associated array.
  • Yes, it's not really any XML, JSON, binary data ... Why? Because it's fast, efficient and convenient. It removes the overhead of parsing anything. In fact, the PHP data itself can ideally be kept in OPCache in memory (thus saving I/O operations) and already pre-prepared. This approach is used in Jet very often (everywhere, actually). Since an online application has a lot of other (and more important) work to do, there is no point in adding more to it. You can read more about this here.
  • Previous chapter
    Jet\Autoloader_Cache_Backend
    Next chapter
    Jet\Autoloader