======================================== Testing Episode API Flow Drama: 1995021029788041218 Language: tr ======================================== --- Testing Episode 25 --- Cache cleared: episode:v1:1995021029788041218:25:tr:1
Class "App\Services\EpisodeDataService" not found
dev-utils/test_episode_api_flow.php
31 $cacheKey = "episode:v1:{$bookId}:{$episodeIndex}:{$lang}:1";
32 Cache::forget($cacheKey);
33 echo "Cache cleared: {$cacheKey}\n";
34
35 try {
36 $service = new EpisodeDataService();
37
38 echo "Calling getEpisodeDetails()...\n";
39 $result = $service->getEpisodeDetails($bookId, $episodeIndex, $lang, true);
40
41 if ($result === null) {
42 echo "❌ Result is NULL - This would cause 404!\n";
43 echo " Checking what's in cache now...\n";
44 $cached = Cache::get($cacheKey);
45 echo " Cache value: " . ($cached ? 'Present' : 'NULL') . "\n";
46 if ($cached) {
47 echo " Cache keys: " . implode(', ', array_keys($cached)) . "\n";
48