---
title: Advanced Settings
description: "Advanced Settings provide technical configuration options for performance optimization, data management, debugging, and specialized behavior. These settings are intended for advanced users or specific hosting environments. --- ## Accessing Advanced Settings 1. Go to **SC Discounts → Settings** 2. Click…"
url: "https://webstepper.io/docs/smart-cycle-discounts/setting-configuration/advanced-settings/"
updated: "2026-02-14"
category: Setting Configuration
---

# Advanced Settings

Advanced Settings provide technical configuration options for performance optimization, data management, debugging, and specialized behavior. These settings are intended for advanced users or specific hosting environments.

---

## Accessing Advanced Settings

1. Go to **SC Discounts → Settings**
2. Click the **"Advanced"** tab

**Note:** Changes to advanced settings can affect plugin performance and behavior. Modify with care.

---

## Performance Settings

### Caching

| Setting | Options | Description |
| --- | --- | --- |
| **Enable Caching** | Yes / No | Cache campaign and product data |
| **Cache Duration** | 1-24 hours | How long to cache data |
| **Object Cache** | Auto / WordPress / External | Which cache system to use |

### Cache Options Explained

- **Auto:** Plugin detects available caching (recommended)
- **WordPress:** Uses WordPress transients only
- **External:** Uses Redis/Memcached if available

### Cache Clear

Clear plugin cache when:

- Campaign changes aren't reflecting
- Price display seems wrong
- After bulk product imports

Button: **"Clear Plugin Cache"**

---

## Query Optimization

### Product Query Settings

| Setting | Options | Description |
| --- | --- | --- |
| **Batch Size** | 50-500 | Products processed per batch |
| **Query Mode** | Standard / Optimized | Query strategy for large catalogs |

### Large Catalog Optimization

For stores with 10,000+ products:

- Enable "Optimized" query mode
- Reduce batch size if experiencing timeouts
- Consider background processing for updates

---

## Scheduling Settings

### Cron Configuration

| Setting | Options | Description |
| --- | --- | --- |
| **Use Action Scheduler** | Yes / No | Use WooCommerce Action Scheduler |
| **Check Frequency** | Hourly / Twice Daily / Daily | How often to check campaign status |

### Action Scheduler Benefits

When enabled (recommended):

- More reliable campaign activation/expiration
- Better performance for scheduled tasks
- Retry capability for failed operations
- Visible task queue in Tools → Scheduled Actions

### Server Cron vs. WP-Cron

For best reliability, configure server-level cron:

```
# Add to crontab (every 5 minutes)
*/5 * * * * wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
```

Then disable WP-Cron in wp-config.php:

```
define( 'DISABLE_WP_CRON', true );
```

---

## Data Retention

### Analytics Data

| Setting | Options | Description |
| --- | --- | --- |
| **Keep Detailed Data** | 30/90/180/365 days / Forever | How long to retain granular analytics |
| **Keep Summary Data** | 1/2/5 years / Forever | How long to retain aggregated summaries |

### Draft Cleanup

| Setting | Options | Description |
| --- | --- | --- |
| **Auto-Delete Drafts** | Yes / No | Remove old incomplete drafts |
| **Draft Age Limit** | 1-30 days | Delete drafts older than this |

### Log Retention

| Setting | Options | Description |
| --- | --- | --- |
| **Keep Debug Logs** | 7/14/30 days | How long to retain debug logs |
| **Keep Activity Logs** | 30/90/180 days | How long to retain activity history |

---

## Debugging

### Debug Mode

| Setting | Options | Description |
| --- | --- | --- |
| **Enable Debug** | Yes / No | Enable detailed logging |
| **Log Level** | Error / Warning / Info / Debug | Verbosity of logs |
| **Log Location** | WC Logs / Custom | Where to write logs |

### Debug Console

When debug mode is enabled:

- Campaign evaluation details logged
- Price calculation steps recorded
- Scheduling events tracked
- Access logs via **SC Discounts → Tools → Debug Log**

### Performance Impact

**Warning:** Debug mode impacts performance. Only enable when troubleshooting, then disable.

---

## Compatibility Settings

### WooCommerce Compatibility

| Setting | Options | Description |
| --- | --- | --- |
| **HPOS Mode** | Auto / Legacy / HPOS | High-Performance Order Storage support |
| **Block Checkout** | Full / Limited / Off | Block-based checkout compatibility |

### Plugin Compatibility

| Setting | Options | Description |
| --- | --- | --- |
| **Dynamic Pricing** | Coexist / Override / Defer | Behavior with other pricing plugins |
| **Multi-Currency** | Auto / Manual | Multi-currency plugin integration |

---

## API Settings

### REST API

| Setting | Options | Description |
| --- | --- | --- |
| **Enable REST API** | Yes / No | Allow REST API access |
| **Authentication** | WooCommerce / WordPress | API authentication method |
| **Rate Limiting** | None / Standard / Strict | API request rate limits |

### Webhook Support

| Setting | Options | Description |
| --- | --- | --- |
| **Enable Webhooks** | Yes / No | Send webhook notifications |
| **Webhook Events** | Multiple selection | Which events trigger webhooks |

---

## Import/Export Settings

### Settings Export

Export all plugin settings for backup or migration:

1. Click **"Export Settings"**
2. JSON file downloads with all configuration
3. Store safely for backup

### Settings Import

Import previously exported settings:

1. Click **"Import Settings"**
2. Select your settings JSON file
3. Review changes before applying
4. Click **"Apply"**

### What Gets Exported

- All General, Display, and Advanced settings
- Notification preferences
- Does NOT include campaigns or analytics data

---

## Database Optimization

### Optimize Tables

Optimize plugin database tables:

1. Click **"Optimize Database"**
2. Tables are analyzed and optimized
3. May improve performance for large datasets

### When to Optimize

- After deleting many campaigns
- After clearing old analytics data
- If experiencing slow queries
- Monthly maintenance (optional)

---

## Reset Options

### Reset Advanced Settings

Reset only advanced settings to defaults while keeping campaigns and other settings.

### Full Plugin Reset

Complete reset of all settings (not data):

1. Click **"Reset All Settings"**
2. Confirm the action
3. All settings return to defaults
4. Campaigns and data are preserved

### Uninstall Data

| Setting | Options | Description |
| --- | --- | --- |
| **Remove Data on Uninstall** | Yes / No | Delete all plugin data when uninstalling |

**Warning:** If enabled, uninstalling the plugin will permanently delete all campaigns, settings, and analytics data.

---

## Recommended Settings by Store Size

### Small Store (<1,000 products)

- Cache Duration: 12 hours
- Batch Size: 100
- Query Mode: Standard
- Action Scheduler: Yes

### Medium Store (1,000-10,000 products)

- Cache Duration: 6 hours
- Batch Size: 200
- Query Mode: Standard
- Action Scheduler: Yes

### Large Store (10,000+ products)

- Cache Duration: 1-2 hours
- Batch Size: 500
- Query Mode: Optimized
- Action Scheduler: Yes (required)
- Consider server-level cron
