Skip to content

How to Configure Daily Cron Job Settings in AMS Plugin

Overview

The Daily Cron Job feature in AMS Plugin automates your product updates using either WordPress’s built-in cron system or server-side cron jobs. This guide explains how to set up and manage both options.

WordPress Cron (Default Method)

What is WordPress Cron?

  • Built-in WordPress scheduling system
  • Handles automated tasks like product updates
  • Runs when someone visits your site

Enabling WordPress Cron

  1. Navigate to AMS Plugin Settings
  2. Find “Daily Cron Job Settings”
  3. Under “WordPress Cron (Default)”:
    • Use the toggle switch to enable/disable
    • The green alert means the cron is active
    • A red alert means the cron is inactive

Using WP Control

  1. Download the WP Control plugin using the provided button
  2. Install and activate the plugin
  3. Benefits:
    • Monitor cron job status
    • Manual cron execution
    • Troubleshoot scheduling issues

Server-Side Cron (Advanced Method)

Why Use Server-Side Cron?

  • More reliable execution
  • Not dependent on on-site visits
  • Better performance
  • Recommended for large stores

Setting Up Server-Side Cron

  1. Click the “How to Set Up Server-Side Cron Job” button
  2. Follow the detailed guide for:
    • cPanel setup
    • Command line configuration
    • Proper timing settings

Best Practices

Choosing the Right Method

  1. WordPress Cron is best for:
    • Small to medium stores
    • Shared Hosting
    • Basic automation needs
  2. Server-Side Cron is best for:
    • Large stores
    • VPS/Dedicated hosting
    • High-reliability requirements

Monitoring and Maintenance

  1. Regular checks:
    • Verify cron job status
    • Check update logs
    • Monitor performance
  2. Troubleshooting:
    • Review error logs
    • Verify scheduling
    • Check server resources

Common Issues and Solutions

WordPress Cron Issues

  • Problem: Cron not running
    • Solution: Verify WP Cron is not disabled
    • Check hosting configuration
    • Use WP Control for diagnostics

Server-Side Cron Issues

  • Problem: Cron’s job failing
    • Solution: Verify the command path
    • Check server permissions
    • Review error logs

Important Notes

  1. Don’t enable both methods simultaneously
  2. Backup your database before changing settings
  3. Monitor the system after making changes
  4. Consider your hosting environment

Need Help?

  • Review the server-side cron guide
  • Contact your hosting provider
  • Reach out to AMS Plugin support
  • Check WordPress documentation

Remember: Choose the method that best fits your store’s size and needs. Start with WordPress Cron for simpler setups, and switch to server-side cron if you need more reliability.