How to Purge the Cache¶
This guide shows you how to refresh cached content in Peakhour's CDN when you need to update your website content.
Before you begin: Review Cache Purging Concepts to understand the difference between soft and hard purges and when to use each approach.
Access the Cache Purge Interface¶
- Navigate to your domain dashboard in Peakhour
- Click on Purge in the main navigation menu
Choose Your Purging Method¶
Method A: Full Site Purge¶
Use this when you need to refresh all cached content:
- Select Full Site Purge option
-
Choose purge type:
-
Soft Purge: Revalidates all content with origin (recommended for routine updates)
- Hard Purge: Removes all content from cache (use for major changes)
- Click Purge All Content
- Confirm the action when prompted
Warning: Full site purges can temporarily impact site performance as the cache rebuilds.
Method B: Single Resource Purge¶
Use this to refresh specific files or pages:
- Select Single Resource Purge option
- Enter the complete URL of the resource to purge:
-
Choose purge type:
-
Soft Purge: Revalidates the resource
- Hard Purge: Removes the resource from cache
- Click Purge Resource
Note: Wildcard URLs are not supported. Each resource must be specified with its exact URL.
Method C: Cache Tag Purge (API)¶
Use this for programmatic or bulk purging of tagged resources:
- Ensure your content includes appropriate cache tags (set via origin headers or rules)
- Use the Peakhour API to purge by tag:
- Monitor the purge status through the dashboard
Verify Purge Completion¶
- Check purge status: The interface will show progress and completion
- Test your content: Visit the affected URLs to confirm updates are visible
- Monitor performance: Watch for any temporary performance impacts during cache rebuild
Monitor Cache Rebuild¶
After purging:
- First visitors may experience slower load times as cache rebuilds
- Performance will improve as popular content gets re-cached
- Monitor your origin server for increased load during rebuild
Common Purging Scenarios¶
After Content Updates¶
- Blog posts: Single resource purge for the specific post URL
- Product images: Single resource or cache tag purge
- Site-wide redesign: Full site hard purge
During Maintenance¶
- Minor updates: Soft purge affected resources
- Major updates: Full site soft purge
- Emergency fixes: Hard purge specific resources immediately
Scheduled Updates¶
- Daily content updates: Automate soft purges via API
- Weekly maintenance: Schedule full site soft purges
- Monthly reviews: Hard purge outdated content
Troubleshooting¶
Content not updating after purge:
- Verify you purged the exact URL (including protocol, subdomain, path)
- Check browser cache - force refresh with Ctrl+F5
- Confirm origin server is serving updated content
Site performance decreased after purge:
- This is temporary while cache rebuilds
- Consider soft purge for less performance impact
- Monitor origin server capacity during rebuild
API purge not working:
- Verify API token permissions
- Check cache tag implementation in your content
- Review API response for error messages
Best Practices¶
- Use soft purges for regular content updates
- Reserve hard purges for critical changes
- Purge during low-traffic periods when possible
- Test purging procedures before major deployments
- Monitor origin server capacity during large purges