-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
performancePerformance improvementsPerformance improvementsplugin-checkWordPress Plugin Check complianceWordPress Plugin Check compliance
Description
Summary
Direct database queries should use WordPress caching mechanisms to improve performance.
Findings
- ~50+ warnings for uncached database calls
- Direct
$wpdb->get_results()and similar calls without caching
Caching Options
-
Object Cache -
wp_cache_get()/wp_cache_set()- Best for frequently accessed data
- Persists across requests with object cache plugins
-
Transients -
get_transient()/set_transient()- Best for data that can be stale temporarily
- Built-in expiration support
Why This Matters
- Reduces database load
- Improves page load times
- Required for scalability on high-traffic sites
- Plugin Check requirement for performance
Acceptance Criteria
- Identify queries that benefit from caching
- Implement appropriate caching strategy for each
- Add cache invalidation on data changes
- Plugin Check passes caching validation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
performancePerformance improvementsPerformance improvementsplugin-checkWordPress Plugin Check complianceWordPress Plugin Check compliance