{"id":73,"date":"2026-01-21T15:01:07","date_gmt":"2026-01-21T15:01:07","guid":{"rendered":"http:\/\/www.posadoble.eu\/en\/?page_id=73"},"modified":"2026-01-21T15:01:07","modified_gmt":"2026-01-21T15:01:07","slug":"cron-job","status":"publish","type":"page","link":"http:\/\/www.posadoble.eu\/en\/cron-job\/","title":{"rendered":"Cron job"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Cron job for Posa Doble<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">What is Cron?<\/h2>\n\n\n\n<p>A Cron job (Cron as in \u201cChronos\u201d, God of time) can perform a certain task in a certain interval.<br>Cron is a Unix\/Linux program, the Windows equivalent for a Cron Job is called Windows Task Scheduler.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What does the Cron Job do?<\/h2>\n\n\n\n<p>We recommend to run a Cron job every day to keep Archimedes running smooth, for example 5AM every night.<br>The cron job performs a couple of tasks, like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>deleting old log files<\/li>\n\n\n\n<li>refresh caches<\/li>\n\n\n\n<li>removing expired users<\/li>\n\n\n\n<li>sending invoices for subscriptions each month<\/li>\n\n\n\n<li>etc<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Cron Job on Windows<\/h2>\n\n\n\n<p>To create the Cron job:<\/p>\n\n\n\n<p>Create a task in Task Scheduler (<a href=\"https:\/\/phoenixnap.com\/kb\/cron-job-windows\" target=\"_blank\" rel=\"noreferrer noopener\">guide for Task Scheduler<\/a>).<br>This task is the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl &#91;url]<\/code><\/pre>\n\n\n\n<p>You can find the url by logging in to the Archimedes admin panel:<br>Go to \u201csettings\u201d (menu), \u201cmaintenance\u201d (tab), \u201cCron job\u201d (heading)<\/p>\n\n\n\n<p>Example:<br>curl http:\/\/localhost\/archimedes\/admin-2389dj3\/cronjob.php?id=zcsamjH3tyss2uj2jh2jkhqwhjkedh2j2mmctg2gppC7N<br>(the exact url is different in every situation)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Cron Job on Linux<\/h2>\n\n\n\n<p>In the terminal use the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>crontab -e<\/code><\/pre>\n\n\n\n<p>then enter<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 5 * * * wget &#91;url]<\/code><\/pre>\n\n\n\n<p>This executes the cron job at 5:00 AM every night.<\/p>\n\n\n\n<p>You can find the url by logging in to the Archimedes admin panel:<br>Go to \u201csettings\u201d (menu), \u201cmaintenance\u201d (tab), \u201cCron job\u201d (heading)<\/p>\n\n\n\n<p>Example:<br>0 5 * * * wget http:\/\/localhost\/archimedes\/admin-2389dj3\/cronjob.php?id=zcsamjH3tyss2uj2jh2jkhqwhjkedh2j2mmctg2gppC7N<br>(the exact url is different in every situation)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When Cron job fails<\/h2>\n\n\n\n<p>When running a Archimides Cron job, it blocks other Cron jobs from running for security and persistence reasons.<br>It can happen that a Cron job fails for unexpected reasons, this will prevent other Cron jobs from running in the future.<br>To unblock the Cron Job:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your config file located on the webserver, called \u201capplication_[xxx]\u201d (on Windows XAMPP this is probably: c:\\xampp\\archimedes\\config\\)<\/li>\n\n\n\n<li>set the variable: APP_CRONJOB_ISEXECUTING to false<\/li>\n\n\n\n<li>Save the config file<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Cron job for Posa Doble What is Cron? A Cron job (Cron as in \u201cChronos\u201d, God of time) can perform a certain task in a certain interval.Cron is a Unix\/Linux program, the Windows equivalent for a Cron Job is called Windows Task Scheduler. What does the Cron Job do? We recommend to run a Cron [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-73","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/pages\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":1,"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/pages\/73\/revisions"}],"predecessor-version":[{"id":74,"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/pages\/73\/revisions\/74"}],"wp:attachment":[{"href":"http:\/\/www.posadoble.eu\/en\/wp-json\/wp\/v2\/media?parent=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}