Fix padding issues, corrupt data, cache problems, and display glitches with built-in diagnostic and repair tools
Something not working right? WhoKnew Views™ Pro includes a comprehensive toolkit for diagnosing and resolving issues without contacting support. From one-click cache refreshes to deep database scans, these tools keep your view counters running smoothly.
🔒 PRO FEATURE — Requires WhoKnew Views™ Pro
🛠️ Quick Reference: All Tools at a Glance
| Tool | Location | Purpose |
|---|---|---|
| ↻ Refresh All Values | Products Tab | Recalculate all display counts |
| 🔍 Scan All Products | System Info | Find corrupt database entries |
| 🔧 Clean Corrupt Data | System Info | Remove invalid timestamps |
| 🗑️ Clear Forecast Cache | System Info | Force fresh Prophet forecasts |
| ⚙️ Reset Settings | Presets/Drop Rate Tabs | Restore default configuration |
| 📋 Bulk Actions | Products Tab | Mass-update product settings |
↻ Refresh All Values (Products Tab)
This is often the first tool to try when view counts look wrong or outdated. It forces a complete recalculation of all product display values.
↻ Refresh All Values
Located at the top of the Products tab
What It Does:
- Clears all view count transients (cache)
- Recalculates real views from timestamps
- Regenerates padding values
- Updates the product table display
💡 When to Use: Display counts not matching expected values, counts appear “stuck” or haven’t updated after settings changes, or you’ve manually edited database values.
🔍 Data Integrity Tools (System Info)
The Product Data Integrity section on the System Info page provides deep database scanning and repair capabilities.
🔍 Product Data Integrity
Scans all products for corrupted data that may prevent Prophet forecasting from working correctly. If forecasts fail with “less than 2 non-NaN rows” errors, run this diagnostic.
🔍 Scan All Products
🔧 Clean Corrupt Data
🗑️ Clear Forecast Cache
🔍 Scan All Products
Examines every product’s view data looking for:
❌ Invalid Timestamps
Non-numeric values, NaN entries, negative numbers
⚠️ Future Timestamps
Dates ahead of current time (clock sync issues)
📅 Stale Data
Timestamps older than 400 days (should be aggregated)
🔢 Array Corruption
Non-sequential keys, object storage bugs
📊 Example Scan Report
47
Clean Products
3
Need Attention
✓ Premium Wireless Headphones— 487 valid timestamps, no issues
✗ Summer Collection T-Shirt
- 2 non-numeric timestamps found
- 1 future timestamp detected
🔧 Clean Corrupt Data
Appears only after scanning finds issues. This tool:
- ✅ Removes NaN values, non-numeric entries, and invalid array keys
- ✅ Preserves all valid timestamps (no data loss for good data)
- ✅ Re-indexes arrays to fix sequential key issues
- ✅ Logs all changes to the Corruption Log
⚠️ Warning: Cleaning is irreversible. The tool only removes clearly invalid data, but always backup your database before running cleanup operations on production sites.
🗑️ Clear Forecast Cache
Forces fresh Prophet API calls by clearing:
- Browser localStorage cache (24-hour TTL)
- WordPress transient cache
- Cached forecast responses
💡 When to Use: Forecasts show outdated predictions, you’ve added significant new data, or you’re debugging forecast accuracy issues.
⚙️ Reset Settings
Available on the Presets and Drop Rate tabs, this tool restores default configuration.
What Gets Reset:
| Setting Type | Reset? | Notes |
|---|---|---|
| Padding Configuration | ✓ YES | Baselines, variations, caps |
| Drop Rate Settings | ✓ YES | Variance ranges, thresholds |
| Living Baseline Config | ✓ YES | Drift settings |
| Email Notifications | ✗ NO | Always preserved |
| Styling Settings | 🔒 Optional | Protected if “Lock Styling” enabled |
| Real View Data | ✗ NEVER | Customer data always safe |
🔒 Lock Styling Settings
A checkbox in the Styling → General Settings section that protects your visual customizations during resets:
🔒
Lock Styling Settings
When enabled, icon styles, colors, fonts, positions, and animations are preserved during “Reset to Defaults”
📋 Bulk Actions (Products Tab)
Mass-update multiple products at once using the bulk action dropdown: Bulk Actions Enable Custom Settings Disable Custom Settings Apply Preset 👁️ Always Visible 🚫 Always Hidden ⏰ Green Mode ⏰ Blue Mode ⏰ Purple Mode Apply
Available Actions:
- Enable Custom Settings — Activate per-product overrides
- Disable Custom Settings — Return to global defaults
- Apply Preset — Assign a padding preset to selected products
- Set Visibility — Change counter display mode (5 options)
↻ Per-Product Refresh (Meta Box)
Each product’s edit page has a refresh icon in the WhoKnew Views™ meta box sidebar:
Current Display
487
Real: 23 | Padded: 464
👁️
↻
Click the ↻ icon to:
- Clear cached values for this specific product
- Recalculate display count based on current settings
- Update the meta box display instantly
🔧 Common Issues & Solutions
🔵 View counts not updating after settings change
Solution: Go to Products tab → Click “Refresh All Values” → Clear your browser cache
🟡 Prophet forecasts failing with “NaN” errors
Solution: Go to System Info → Click “Scan All Products” → If issues found, click “Clean Corrupt Data”
🟢 Want to start fresh with default settings
Solution: Enable “Lock Styling Settings” first (if you want to keep styles) → Go to Presets tab → Click “Reset to Defaults”
🟣 Forecasts showing old cached predictions
Solution: Go to System Info → Click “Clear Forecast Cache” → Regenerate forecast on Analytics page
🔴 Multiple products need same visibility setting
Solution: Go to Products tab → Check the products → Select visibility from Bulk Actions dropdown → Apply
📝 Debugging with WP_DEBUG
For advanced troubleshooting, enable WordPress debug logging to see detailed plugin operations:
// Add to wp-config.php
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
Logs are written to wp-content/debug.log and include:
- Cache clearing operations
- Data integrity scan results
- Prophet API requests and responses
- Padding calculation steps
- Bot/IP filtering decisions