From 87d1e21679a6c1cd618c981ad1d3014bb55eb70d Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 27 Jan 2020 19:48:20 +0000 Subject: [PATCH] merge COMPILE_ELS into SPEED_HAX --- core/send_event.php | 4 ++-- tests/defines.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/send_event.php b/core/send_event.php index d212611d..dfd04bb2 100644 --- a/core/send_event.php +++ b/core/send_event.php @@ -12,12 +12,12 @@ function _load_event_listeners(): void global $_shm_event_listeners; $cache_path = data_path("cache/shm_event_listeners.php"); - if (COMPILE_ELS && file_exists($cache_path)) { + if (SPEED_HAX && file_exists($cache_path)) { require_once($cache_path); } else { _set_event_listeners(); - if (COMPILE_ELS) { + if (SPEED_HAX) { _dump_event_listeners($_shm_event_listeners, $cache_path); } } diff --git a/tests/defines.php b/tests/defines.php index 42c89960..b314e8ba 100644 --- a/tests/defines.php +++ b/tests/defines.php @@ -10,7 +10,6 @@ define("COVERAGE", false); define("CACHE_HTTP", false); define("COOKIE_PREFIX", 'shm'); define("SPEED_HAX", false); -define("COMPILE_ELS", false); define("NICE_URLS", false); define("SEARCH_ACCEL", false); define("WH_SPLITS", 1);