CodeExplorer ignoreCache example
$this->fileSystem->
write( $finalFilePath,
$headerContent .
$content .
$footerContent );
return true;
} private function isCacheExpired(ExportBehavior
$behavior, ProductExportEntity
$productExport): bool
{ if ($behavior->
ignoreCache() ||
$productExport->
getGeneratedAt() === null
) { return true;
} $expireTimestamp =
$productExport->
getGeneratedAt()->
getTimestamp() +
$productExport->
getInterval();
return (new \
DateTime())->
getTimestamp() >
$expireTimestamp;
} private function ensureDirectoryExists(): void
{ if (!
$this->fileSystem->
fileExists($this->exportDirectory
)) {