The ability to set reoccurring Campaigns

  • Corey DeLasaux
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
16 years 1 month ago #751 by Corey DeLasaux
The ability to set reoccurring Campaigns was created by Corey DeLasaux
Awesome would be the ability to make campaigns reoccurring like each month for um well Site support for example. So you set one campaign and it automatically creates a new one just prior to the existing one expiring.

Please Log in or Create an account to join the conversation.

  • Corey DeLasaux
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 11 months ago #1193 by Corey DeLasaux
Replied by Corey DeLasaux on topic Re:The ability to set reoccurring Campaigns
I was thinking about this and came across a post seeing that your considering applying something.

One way to get around the need for cron, is maybe have the creation of a file for each day and every time one of the modules is accessed a function can check to see if the creation date is the same day. If not and is the previous day, remove the old file, check for jobs (if new campaigns need to be created), then create a new file to check against.

For example you could use the tmp folder in the web root and create a empty file name jdonation.cron in that tmp folder and use the creation date to decide when to run other functions.

Just a thought ;)

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt