======================================== Testing Optimized Episode Fetching With Cached Drama Metadata ======================================== 1. Caching drama metadata... Dracin
Internal Server Error

Error

Class "App\Services\DramaDataService" not found

LARAVEL 12.31.1
PHP 8.3.30
UNHANDLED
CODE 0
GET
https://komikcast.xyz

Overview

DATE
2026/03/03 12:05:57.022 UTC
STATUS CODE
500
METHOD
GET

Exception trace

dev-utils/test_cached_drama_optimization.php
dev-utils/test_cached_drama_optimization.php:27
22echo "With Cached Drama Metadata\n";
23echo "========================================\n\n";
24
25// Step 1: Ensure drama is cached
26echo "1. Caching drama metadata...\n";
27$dramaService = new DramaDataService();
28$dramaDetails = $dramaService->getDramaDetails($bookId, $lang);
29echo "   ✓ Drama cached with " . count($dramaDetails['drama']['chapters'] ?? []) . " episodes\n\n";
30
31// Step 2: Clear episode cache to force fresh fetch
32$episodeCacheKey = "episode:v1:{$bookId}:{$episodeIndex}:{$lang}:1";
33Cache::forget($episodeCacheKey);
34echo "2. Episode cache cleared\n\n";
35
36// Step 3: Fetch episode (should only call video API)
37echo "3. Fetching episode {$episodeIndex}...\n";
38echo "   Expected: 1 API call (video only)\n";
39

Queries

// No queries executed

Headers

host
komikcast.xyz
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
accept
*/*
accept-language
en-us,en;q=0.5
accept-charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7
x-https
1
accept-encoding
gzip, br, zstd, deflate

Body

// No request body

Routing

// No routing context

Routing parameters

// No routing parameters