Overview
System settings control platform behavior, performance, and maintenance. Cache management ensures users see the latest content while maintaining fast load times.
Performance: Proper cache management can reduce page load times by 50-80%.
Accessing System Settings
- Navigate to Admin > System
- View all system controls
- Make changes carefully
System Settings
Cache Management
Understanding Caches
| Cache Type | What It Stores | Why It Matters |
|---|---|---|
| Page Cache | HTML pages | Faster page loads |
| Data Cache | Database queries | Reduced DB load |
| Image Cache | Resized images | Faster images |
| API Cache | API responses | Faster API calls |
| Search Cache | Search results | Quick searches |
Cache Dashboard
View cache status:
- Total cached items
- Cache hit rate
- Cache size
- Last cleared time
Clearing Cache
Clear All Cache
When to use:
- After major content updates
- When seeing stale data
- After taxonomy changes
- Post-deployment
Steps:
- Go to System > Cache
- Click Clear All Cache
- Confirm action
- Wait for completion
Clear Cache
Clear Specific Caches
| Cache | When to Clear |
|---|---|
| Product Cache | After product updates |
| Category Cache | After taxonomy changes |
| User Cache | After permission changes |
| Search Cache | After adding products |
| Page Cache | After content changes |
Cache Settings
| Setting | Options | Recommended |
|---|---|---|
| TTL (Time to Live) | 1 min - 24 hours | 1 hour |
| Max Size | 100MB - 10GB | 1GB |
| Auto-Invalidate | On/Off | On |
| Compression | On/Off | On |
Redis Cache (Advanced)
Redis Status
If using Redis:
- Connection status
- Memory usage
- Keys count
- Eviction policy
Redis Commands
| Action | Purpose |
|---|---|
| Flush DB | Clear all keys |
| Info | Server information |
| Monitor | Real-time activity |
Database Maintenance
Routine Maintenance
| Task | Frequency | Purpose |
|---|---|---|
| Vacuum | Weekly | Reclaim space |
| Analyze | Weekly | Update statistics |
| Reindex | Monthly | Optimize indexes |
Running Maintenance
- Go to System > Database
- Select maintenance task
- Schedule or run immediately
- Monitor completion
Warning: Run maintenance during low-traffic periods.
Background Jobs
Job Queue Status
Monitor background tasks:
- Email sending
- Image processing
- Search indexing
- Report generation
Job Status Types
| Status | Meaning |
|---|---|
| 🟢 Running | Currently executing |
| 🟡 Pending | Waiting in queue |
| 🔴 Failed | Error occurred |
| ⚪ Completed | Finished successfully |
Managing Failed Jobs
- View failed jobs
- Check error message
- Fix underlying issue
- Retry or delete job
Email Settings
Email Configuration
| Setting | Description |
|---|---|
| From Address | Sender email |
| From Name | Sender display name |
| Reply-To | Reply destination |
| Provider | Email service (Resend, etc.) |
Test Email
- Go to System > Email
- Enter test recipient
- Click Send Test
- Verify delivery
Email Logs
View sent emails:
- Recipient
- Subject
- Status (delivered, bounced)
- Timestamp
Storage Management
Storage Usage
| Category | Size | % of Total |
|---|---|---|
| Product Images | 15 GB | 60% |
| User Avatars | 2 GB | 8% |
| Documents | 5 GB | 20% |
| Backups | 3 GB | 12% |
Cleanup Tasks
| Task | Action |
|---|---|
| Orphaned Images | Remove unused images |
| Temp Files | Clear temporary uploads |
| Old Logs | Archive/delete old logs |
Feature Flags
Managing Features
Enable/disable features:
| Feature | Status | Impact |
|---|---|---|
| New Search | Enabled | All users |
| Beta Analytics | Disabled | Hidden |
| AI Content | Enabled | Admins only |
Feature Rollout
- Create feature flag
- Enable for % of users
- Monitor performance
- Roll out to all or disable
Security Settings
Session Settings
| Setting | Recommended |
|---|---|
| Session Timeout | 24 hours |
| Remember Me | 30 days |
| Max Sessions | 5 per user |
Rate Limiting
| Endpoint | Limit |
|---|---|
| Login | 5/min |
| API | 100/min |
| Search | 30/min |
| Inquiry | 10/min |
Monitoring
Health Checks
Monitor system health:
- Database connectivity
- Cache connectivity
- Storage availability
- External services
Alert Settings
Configure alerts for:
- Server errors
- High response times
- Low disk space
- Failed jobs
Backup & Recovery
Backup Schedule
| Backup Type | Frequency | Retention |
|---|---|---|
| Full DB | Daily | 30 days |
| Incremental | Hourly | 7 days |
| Files | Daily | 30 days |
Manual Backup
- Go to System > Backups
- Click Create Backup
- Select type (full/partial)
- Download when complete
Restore Process
- Select backup to restore
- Preview changes
- Confirm restoration
- Monitor progress
Warning: Restoration overwrites current data. Use with caution.
Best Practices
Do's ✅
- Clear cache after major updates
- Monitor cache hit rates
- Run maintenance regularly
- Keep backups current
- Test email delivery
- Review logs weekly
Don'ts ❌
- Don't clear cache during peak hours
- Don't skip backups
- Don't ignore failed jobs
- Don't leave old data
- Don't forget monitoring
- Don't disable features without testing
Troubleshooting
Site is slow?
- Check cache hit rate
- Clear and rebuild cache
- Check database performance
- Review background jobs
- Monitor server resources
Data not updating?
- Clear specific cache
- Check cache TTL settings
- Verify database writes
- Check for job failures
Emails not sending?
- Test email configuration
- Check API credentials
- Review email logs
- Verify sender domain
