Add cache file constant (#7755)

* Remove the cache method calling the autoloader constant

* Re-add the constants for file location
This commit is contained in:
frytimo
2026-02-24 17:35:21 -04:00
committed by GitHub
parent ff4f857570
commit ba5b7aada5
2 changed files with 2 additions and 5 deletions

View File

@@ -36,6 +36,8 @@ class auto_loader {
const CLASSES_KEY = 'autoloader_classes';
const INTERFACES_KEY = "autoloader_interfaces";
const CLASSES_FILE = 'autoloader_cache.php';
const INTERFACES_FILE = "autoloader_interface_cache.php";
private $classes;
/**
* Tracks the APCu extension for caching to RAM drive across requests

View File

@@ -211,11 +211,6 @@ class cache {
apcu_clear_cache();
}
//remove the autoloader file cache
if (file_exists(sys_get_temp_dir() . '/' . auto_loader::CLASSES_FILE)) {
@unlink(sys_get_temp_dir() . '/' . auto_loader::CLASSES_FILE);
}
//cache method memcache
if ($this->method === "memcache") {
// connect to event socket