PluginProbe
wpForo Forum / 3.2.0
wpForo Forum v3.2.0
3.2.0 3.1.7 3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 All 140 releases
← All changes | classes/Cache.php +3 -2 3.1.6 → 3.2.0 View file →
@@ -450,10 +450,11 @@
450 450 $filecount = iterator_count( $fi );
451 451 if( ! $filecount ) return;
452 452
453 453 // Dynamic limit based on online members (scales with forum activity)
454 - $stats = WPF()->statistic();
455 - $online = max( 2, intval( $stats['online_members_count'] ) );
454 + // Use direct call to avoid recursion: statistic() calls post->get_url() which triggers cache->create() -> check() -> statistic()
455 + $online = WPF()->member ? intval( WPF()->member->online_members_count() ) : 0;
456 + $online = max( 2, $online );
456 457 $max = $online * 500;
457 458 $max = max( 1000, min( $max, 50000 ) );
458 459
459 460 /**