What can be done?
Here are some advices to schedule;
Clear temporary files
Aim: Deleting the temporary files of your site.
How: Create a task which calls the temporary file cleaner page (http://www.mysite.com/delete-temporary-files.aspx) for once a day.
Sending newsletter periodically
Aim: Sending periodical newsletter and report to the members.
How: Create a task which calls the newsletter or report sender page (http://www.mysite.com/send-newsletter-or-report.aspx) for once a day or once a week.
Email sender task
Aim: Prevent incongruity between rollbacking DB operations and sending e-mails. One more advantage is logging all outgoing e-mails.
How: Insert the email information to a table (with columns to, subject, body, date, sent, etc) instead of sending it immediately. "sent" column is a flag (0/1) column, where 0 for unsent, 1 for sent e-mails.
Create a task which calls the e-mail sender page (http://www.mysite.com/send-emails.aspx) for every 5 minutes period.
"send-emails.aspx" page gets the records from e-mails table where "sent" flag = 0. Sends the e-mails and sets "sent" flag = 1.
Sitemap creator task
Aim: Keeping sitemap file up-to-date automatically.
How: Create a task which calls the sitemap creator page (http://www.mysite.com/create-sitemap.aspx) for once a day, every midnight.
"create-sitemap.aspx" page creates sitemap.xml
Database backup task
Aim: Backuping DB automatically.
How: Create a task which calls the backup page (http://www.mysite.com/backup-db.aspx) for once a day, every midnight.
"backup-db.aspx" page backups your DB
Sending birthday e-mails to the members
How: Create a task which calls the birthday message sender page (http://www.mysite.com/send-message.aspx) for once a day, every morning.
"send-message.aspx" page selects the members whoes birthday is today and sends them the birthday message.
|