Why discuz This feature scheduling task function without event scheduling?

Source: Internet
Author: User

I went to the designated time to observe the database found that the specified data has not changed, that is, the scheduled task is not executed, I heard that the open page to execute, I took it why the team does not use event scheduling?

Reply content:

I went to the designated time to observe the database found that the specified data has not changed, that is, the scheduled task is not executed, I heard that the open page to execute, I took it why the team does not use event scheduling?

You are two questions:

  1. Discuz didn't perform the scheduled task.

  2. Discuz's development team does not use event scheduling

The first question, it should be said that if your site does not have any user access, it is possible to really do not execute, after all, Discuz's scheduled task is to trigger execution. As to how to solve, it is recommended to look for a post like this, there may be upgrade or plug-in caused by the installation.

The second question, should be the design of the discuz decision, I guess it is the design of the idea is to use the most basic PHP and MySQL can complete the main functions, so the design time did not consider using event scheduling.

Because he has to think about the space that the user is using

Virtual hosts do not have crontab permissions, and technology has always been a trade-off in terms of constraints.
This function I think may be:
Write the configuration to a randomly named file, and then PHP ignores the user shutdown, the dead loop runs to the point of execution, and if the configuration file does not exist, exit.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.