diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php
index 1058f38ffd2..dbc69c943dd 100644
--- a/htdocs/modulebuilder/index.php
+++ b/htdocs/modulebuilder/index.php
@@ -1548,7 +1548,7 @@ elseif (! empty($module))
print '
';
- opcache_invalidate($dirread.'/'.$pathtoclass,true); // remove the include cache hell !
+ if(function_exists('opcache_invalidate')) opcache_invalidate($dirread.'/'.$pathtoclass,true); // remove the include cache hell !
if (empty($forceddirread))
{