diff --git a/lib/private/config.php b/lib/private/config.php
index 8bb2a5c48d1cc515a9f683f64394f264e51995b8..3e7fef44cb951242d532113b90ae3627a1c1bc09 100644
--- a/lib/private/config.php
+++ b/lib/private/config.php
@@ -208,7 +208,7 @@ class Config {
 		fclose($filePointer);
 
 		// Try invalidating the opcache just for the file we wrote...
-		if (!\OC_Util::deleteFromOpcodeCache($this->configFilename)) {
+		if (!\OC_Util::deleteFromOpcodeCache($this->configFilePath)) {
 			// But if that doesn't work, clear the whole cache.
 			\OC_Util::clearOpcodeCache();
 		}