mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-31 13:39:55 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user