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

  • Home
  • SEARCH
  • 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 262689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:32:20+00:00 2026-05-11T22:32:20+00:00

we have a modularized website built on the MVC pattern. We would like to

  • 0

we have a modularized website built on the MVC pattern. We would like to create cronjob scripts which execute every 1, 15, 60 minutes and which execute daily. We -need- the cronjobs (to make sure nobody starts asking if we really need them).

Actions include finishing up orders for process every 15 minutes and accepting new user registrations every 60 minutes.

We have folders for controllers, models and views. These obviously contain the appropriate files for our website.

This is the global directory structure:

Root
 - /controller
 - /css
 - /js
 - /model
 - /view

/js and /css can be reached by the browser. The rest is handled by controller actions.

Now where do cronjobs fit in?

  1. Do I create seperate functions within an already existing controller? (my preference, so that code is located where it logically should)
  2. Or do I create new controllers for cronjobs?
  3. Or something else..?
  • 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-05-11T22:32:20+00:00Added an answer on May 11, 2026 at 10:32 pm

    If you’re using a framework of your own creation, then I would argue there isn’t a “right” answer to this question, although there are certainly wrong answers.

    If option 1 makes sense to you, and the team you’re working with then it should be fine.

    I will say that the framework I created for my own use I generally found that cron jobs needed enough different processing that creating dedicated controllers made more sense than trying to hang them on the outside of existing controllers. But in my case I designed the framework myself, and I’m on the only coder on the projects that use it, so I’m the only person I had to convince I’d done it right (I’m also the one that pays the price for mistakes, but that’s another issue).

    If you’re working with an existing framework, I suggest you add that to your question and you match the design patterns of that framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 156k
  • Answers 156k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer try this javascript: function checkTextAreaMaxLength(textBox,e, length) { var mLen =… May 12, 2026 at 10:53 am
  • Editorial Team
    Editorial Team added an answer Eeeeh.... OK? If I replaced the line Copy-Item $config -Destination… May 12, 2026 at 10:53 am
  • Editorial Team
    Editorial Team added an answer Image myImage = Image.FromFile("myimage.png"); myImage.RotateFlip(RotateFlipType.Rotate180FlipNone); http://msdn.microsoft.com/en-us/library/system.drawing.image.rotateflip.aspx May 12, 2026 at 10:53 am

Related Questions

I have a block of JSP code that needs to be used in several
Our company has a point of sale system with many extras, such as ordering
We're currently developing a new piece of hand-held software. I cant discuss the nature
We have a requirement in project to store all the revisions(Change History) for the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.