chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Archive\Optimized;
/**
* Cache-Analyse für Template-Rendering
*/
final readonly class CacheAnalysis
{
public function __construct(
public CacheStrategy $strategy,
public int $ttl,
public array $dependencies = [],
) {}
public function shouldCache(): bool
{
return $this->strategy !== CacheStrategy::DYNAMIC && $this->ttl > 0;
}
public function isUserSpecific(): bool
{
return isset($this->dependencies['user_id']) || isset($this->dependencies['session_id']);
}
public function getComplexity(): int
{
return count($this->dependencies) + ($this->isUserSpecific() ? 5 : 0);
}
}