Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8094943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:57:23+00:00 2026-06-05T20:57:23+00:00

So I know how to setup a cron using the config.xml crontab stuff: <crontab>

  • 0

So I know how to setup a cron using the config.xml crontab stuff:

<crontab>
    <jobs>
        <millena_export_send_all>
            <schedule><cron_expr>* * * * *</cron_expr></schedule>
            <run><model>millena_export/observer::exportOrderData</model></run>
        </millena_export_send_all>
    </jobs>
</crontab>

But what I am confused about is how to make that cron_expr a setting in the backend that can be changed (every 5 minutes, every 10 minutes, etc). I am thinking I can use a backend_model and then in an after_save method I can do setStoreConfig(‘path/to/schedule/cron_expr’, ‘*/5 * * * *’) or something to that sort and it will save in the cache. Is my thinking correct? Is there a better way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:57:24+00:00Added an answer on June 5, 2026 at 8:57 pm

    A better solution that doesn’t involve a custom backend model.

    config.xml

    <?xml version="1.0"?>   
    <config>
        <modules>
            <Company_Export>
                <version>0.1.0</version>
            </Company_Export>
        </modules>
        <global>
            <models>
                <company_export>
                    <class>Company_Export_Model</class>
                </company_export>
            </models>
        </global>
        <default>
            <export>                
                <order>
                    <cron_settings>*/5 * * * *</cron_settings>
                </order>
            </export>
        </default>
        <crontab>
            <jobs>                
                <company_export_send_order>
                    <schedule>
                        <config_path>export/order/cron_settings</config_path>
                    </schedule>
                    <run>
                        <model>company_export/observer::exportOrderData</model>
                    </run>
                </company_export_send_order>
            </jobs>
        </crontab>
    </config>
    

    system.xml

    <?xml version="1.0"?>
    <config>
        <tabs>
            <feedsconfig translate="label" module="export">
                <label>Feeds Configuration</label>
                <sort_order>99999</sort_order>
            </feedsconfig>
        </tabs>
        <sections>
            <export translate="label" module="export">
                <label>Export</label>
                <tab>feedsconfig</tab>
                <frontend_type>text</frontend_type>
                <sort_order>10000</sort_order>
                <show_in_default>1</show_in_default>
                <groups>
                    <order translate="label">
                        <label>Order</label>
                        <frontend_type>text</frontend_type>
                        <sort_order>2</sort_order>
                        <show_in_default>1</show_in_default>
                        <fields>
                             <cron_settings>
                                <label>How often do you want the cron to run?</label>
                                <frontend_type>text</frontend_type>
                                <sort_order>40</sort_order>
                                <comment>Use Crontab Format (Eg. "*/5 * * * *" for every 5 minutes)</comment>
                                <show_in_default>1</show_in_default>
                            </cron_settings>
                        </fields>
                    </order>
                </groups>
            </export>
        </sections>
    </config>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are many posts about using CRON to run a php file.
I do not know how to setup web.xml,myproject.gwt.xml, and spring-servlet.xml to integrate gwt and
I have thought of using cron jobs recently. In my site, I have css
I want to setup a Cron job to run a django file. What I
I know I can setup OutputCacheProfiles at web.config file. I like to know how
I know how to setup araxis merge to be my git diff / merge
I'd like to know how to setup my exim4 on Debian so that it
Does anybody out there know how to setup Eclipse with MinGW or Cygwin to
(if the question is more appropriate for RackOverflow please let me know) I've setup
Has anyone used this plugin? I don't know if my setup is right, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.