Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Long running php process vs cronjob

    Scheduled Pinned Locked Moved Development
    1 Posts 1 Posters 781 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckman212L
      luckman212 LAYER 8
      last edited by

      While I was working on #4595 I was thinking about ways to minimize the overhead of running a cronjob once a minute, startup up php, loading includes etc.

      I thought it could be better to have the main script just run once and stay running in a loop with a sleep interval, and then instead use cron to fire off a small check job once in a while just to make sure that main task is always running. I wasn't sure if this was possible or even a good idea. Anyone have any thoughts?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.