Page 1 of 1

You will then see the tasks that Joomla provides by default:

Posted: Tue Jan 07, 2025 6:28 am
by tanjimajuha20
Since Joomla 4.1, the content management system has been shining with the Task Scheduler - a core function that is often underestimated. In this blog post, I'll show you what the Task Scheduler actually is and what magic you can do with it on your website. But first, let's look at the basics: What exactly is the Task Scheduler and where can you find it?



The Task Scheduler, also macedonia phone data known as "Poor Man's Cron", works like this: Every time your website is visited, this function sets a trigger that can execute a script. This makes the Task Scheduler partially obsolete classic cron jobs* - all you need to execute a task is a visitor to your website.

*Cronjob:
A cronjob is a scheduled task that runs automatically at specified times or intervals. It uses a service that runs continuously in the background, waiting to perform tasks. Cronjobs are particularly useful for regular maintenance work and are a great way to increase efficiency.

Which tasks can I create with the Task Scheduler?
The downside of this “poor man's cron” is that a website visit is necessary to execute the task. But don't worry: The Task Scheduler offers the option to set up an endpoint for a single cron job that triggers all tasks at the same time.

You can find the task scheduler in the backend under “System ” behind the link “ Scheduled Tasks ” . To create the first task, click on “New ” or “ Create first task ” in the toolbar at the top as usual.



Figure: The Task Scheduler in the Joomla backend


delete user activities

Deletes user activities after a selected period of time.

session data cleansing

Cleans up expired data and metadata depending on session storage.

Status Website Switch

Toggles the state of the website every time it runs.

Global Sharing

Releasing locked entries.

Joomla update notice

This task checks if a newer version of Joomla is available. If a new version is found, it sends an email reminding you to update Joomla.

Putting the website online

Sets the status of the website to online every time it runs.

expiration of data protection consent

Manages the expiration of data protection consents.

Checking the image size

Check images and resize them if they are larger than allowed. Warning: The original file will be overwritten!

Take website offline

Sets the status of the website to offline every time it runs.

protocol rotation

Rotates the log files regularly.

GET request

Make GET requests to a server. Supports custom timeout and authorization headers

I would like to highlight two core tasks that I think are useful on every page:

Global Sharing
Anyone who has always been annoyed that authors leave their posts "locked" can now simply check all posts back in using a routine task. You can control this check-in as you wish and also activate a time lock that determines how long a post should be checked out for at least. If, for example, the post has been officially under construction for two hours and this is completely unlikely on your particular website, then the post can be checked in automatically.

Joomla update notice
Great news - there's a Joomla update available! We're always happy about that, but we don't want to be reminded every two hours. You can customize the Joomla update notification via the task scheduler as you wish. Is one email per week enough for you because you conscientiously do all updates straight away? Then set up the task accordingly.


10% discount on all DF products
Create and configure tasks
To set up a task:

Select the task, for example Global Release .
Give the task a title, for example "Check in locked posts" would be a very obvious choice, and set how often the task should be executed. How about once per hour? Always make sure that the execution of the respective tasks is set as often as necessary and as infrequently as possible.
Figure: Global sharing