diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-09-08 16:40:48 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-09-08 18:56:19 +0000 |
commit | e4fbb49f38dcda84fce9bc00b70d1a6b1a252a0d (patch) | |
tree | 01f187f93978480f831963b39fdf3a46c61ce587 /lib/private/legacy | |
parent | 2642a330b489e7353153de41c5bd67a7028f4c8a (diff) | |
download | nextcloud-server-e4fbb49f38dcda84fce9bc00b70d1a6b1a252a0d.tar.gz nextcloud-server-e4fbb49f38dcda84fce9bc00b70d1a6b1a252a0d.zip |
fix(autoloader): no apcu no side effects
apcu lead to side effects especially with app management and (soft)
inter-dependencies, and lead also to 500 server errors. While we could
add management to clear apcu cache in many cases (may stil leave edge
cases) the performance benefit is marginally as also class maps are
already cached in opcache. Hence, the simple and effective way to go is
to not use apcu for autoloading.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 833fb994ec4..3400940a054 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -326,9 +326,10 @@ class OC_Util { return; } + $timestamp = filemtime(OC::$SERVERROOT . '/version.php'); require OC::$SERVERROOT . '/version.php'; /** @var int $timestamp */ - self::$versionCache['OC_Version_Timestamp'] = \OC::$VERSION_MTIME; + self::$versionCache['OC_Version_Timestamp'] = $timestamp; /** @var string $OC_Version */ self::$versionCache['OC_Version'] = $OC_Version; /** @var string $OC_VersionString */ |