diff --git a/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php b/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php index f5a19ada8ae..0811fd7951e 100644 --- a/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php +++ b/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php @@ -1371,6 +1371,12 @@ public function abortCacheGeneration() */ public function checkCacheGenerationTimeout() { + if ( $this->generationStartTimestamp === false ) + { + eZDebug::writeError( "Cache generation has not started, cannot check timeout", 'cluster.log' ); + return true; + } + eZDebugSetting::writeDebug( 'kernel-clustering', 'Checking cache generation timeout', "dfs::checkCacheGenerationTimeout( '{$this->filePath}' )" ); return self::$dbbackend->_checkCacheGenerationTimeout( $this->filePath, $this->generationStartTimestamp ); }