{"id":185992,"date":"2021-04-12T15:25:07","date_gmt":"2021-04-12T13:25:07","guid":{"rendered":"https:\/\/guide.jtl-software.com\/managing-cron\/"},"modified":"2023-06-16T10:44:31","modified_gmt":"2023-06-16T08:44:31","slug":"managing-cron","status":"publish","type":"page","link":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/","title":{"rendered":"Managing Cron"},"content":{"rendered":"<div class=\"wpb-content-wrapper\">[vc_row][vc_column width=&#8221;1\/3&#8243; responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;order-md&#8220;: &#8220;1&#8220;, &#8220;col-lg&#8220;: &#8220;4&#8220;, &#8220;order-lg&#8220;: &#8220;12&#8220;}&#8221; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;]<div id=\"toc\">\n\t<div class=\"card border-0 bg-rysywhite mt-0 mt-lg-5 mb-5 w-100\" data-toc-element>\n\t\t<div class=\"d-none d-lg-flex flex-column\">\n\t\t\t<span class=\"fa-layers mx-auto mt--4 fa-fw fa-3x text-shaftblue\">\n\t\t\t\t<span class=\"fas fa-circle\"><\/span>\n\t\t\t\t<span class=\"fas fa-inverse fa-list-ul\" data-fa-transform=\"shrink-8\"><\/span>\n\t\t\t<\/span>\n\t\t\t<span class=\"font-weight-bold text-shaftblue text-center h5 mt-3 mb-0\">Contents<\/span>\n\t\t<\/div>\n\t\t<div class=\"d-block d-lg-none\">\n\t\t\t<a class=\"text-decoration-none card-header-link collapsed\" data-toggle=\"collapse\" href=\"#collapse-toc\" aria-expanded=\"false\" aria-controls=\"collapse-toc\">\n\t\t\t\t<div class=\"card-header d-flex bg-white align-items-center\" role=\"tab\" id=\"heading-toc\">\n\t\t\t\t\t<span class=\"h4 mb-0 d-flex align-items-center\">\n\t\t\t\t\t\t<span class=\"fa-layers fa-fw fa-2x mr-2 text-shaftblue\">\n\t\t\t\t\t\t\t<span class=\"fas fa-circle\"><\/span>\n\t\t\t\t\t\t\t<span class=\"fas fa-inverse fa-list-ul\" data-fa-transform=\"shrink-8\"><\/span>\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t<span>Contents<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<span class=\"flex-shrink-0 ml-auto fas fa-caret-down text-gray\"><\/span>\n\t\t\t\t<\/div>\n\t\t\t<\/a>\n\t\t<\/div>\n\t\t<div id=\"collapse-toc\" class=\"collapse show\" data-parent=\"#toc\" role=\"tabpanel\" aria-labelledby=\"heading-toc\">\n\t\t\t<div class=\"card-body p-4 table-of-content\">\n\t\t\t\t<ul data-toc-headings=\"h2,h3\" data-toc class=\"list-shop\"><\/ul>\n\t\t\t<\/div>\n\t    <\/div>\n\t<\/div>\n<\/div>[\/vc_column][vc_column responsive=&#8221;{&#8220;col&#8220;: &#8220;12&#8220;, &#8220;col-md&#8220;: &#8220;8&#8220;, &#8220;order-md&#8220;: &#8220;12&#8220;, &#8220;order-lg&#8220;: &#8220;1&#8220;}&#8221; width=&#8221;2\/3&#8243; advanced=&#8221;{&#8220;class&#8220;: &#8220;&#8220;, &#8220;hash&#8220;: &#8220;&#8220;}&#8221;]<h1 class=\"d-flex align-items-center hl-shop\" id=\"managing-cron\">Managing Cron <span id='anchor-managing-cron' data-href='#managing-cron' class='far fa-link' data-anchor><\/span><\/h1><div class=\"custom-box\">\n\t<div class=\"d-flex align-items-center mb-4\">\n\t\t\t\t\t\t\t<span class=\"mr-3 fa-stack flex-shrink-0 fa-1x\">\n\t\t\t<span class=\"fas fa-circle fa-stack-2x text-shaftblue\"><\/span>\n\t\t\t\t\t<span class=\"flex-shrink-0 fas fa-clipboard-list text-white fa-stack-1x\"><\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\n\t\t\n\t\t<h3 class=\"mb-0 \" id=\"your-task-initial-situation\">Your task\/initial situation <span id='anchor-your-task-initial-situation' data-href='#your-task-initial-situation' class='far fa-link' data-anchor><\/span><\/h3>\t<\/div>\n\t<div class=\"box-content\">\n\t\tYou would like JTL-Shop to carry out background tasks that ensure the smooth operation of your online shop. These tasks should be done at a time that suits you well, so you want to specify the time and frequency.\t<\/div>\n<\/div>\n<h2 class=\"d-flex align-items-center hl-shop\" id=\"cron-tasks\">Cron tasks <span id='anchor-cron-tasks' data-href='#cron-tasks' class='far fa-link' data-anchor><\/span><\/h2>\t<p>Cron tasks allow you to carry out scheduled background tasks. This avoids resource-intensive processes during peak times.<\/p>\n<p>The Cron page is accessible via <span class=\"highlight\">Administration &gt; System &gt; Cron<\/span>.<\/p>\n<div class=\"media-object media-object-border d-flex align-items-top\">\n\t\n\t\t\n\t\t<span class=\"mt-1 mr-3 flex-shrink-0 far fa-info-circle fa-2x columnsize-fa-2x text-shop\"><\/span>\n\t\t\t<span class=\"media-content border-shop\">\n\t\n\t\t\t<strong>Please note:<\/strong> This is only a pseudo Cron method that may in some cases work unreliably since the tasks are only executed when the online shop is called up. With real Cron jobs, scheduled tasks are processed in set time intervals. Please contact your hosting provider if you would like to use real server-based Cron tasks.\t\t\t<\/span>\n\t\n\t<\/div>\n\n\n<h2 class=\"d-flex align-items-center hl-shop\" id=\"overview-of-queue-entries\">Overview of queue entries <span id='anchor-overview-of-queue-entries' data-href='#overview-of-queue-entries' class='far fa-link' data-anchor><\/span><\/h2>\t<p>Queue entries are a list of all Cron jobs that still need to be carried out.<br \/>\nBy default, two task types have already been created:<\/p>\n<ul class=\"list-reset ml-3 list-icons list-custom-square list-shop\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\t<strong>Anonymisation of customer data:<\/strong> This type comprises several GDPR-related processes. Every 24 hours, unused personal data is deleted. This can be, for example, old data related to guest orders or already processed customer queries via the contact form.\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\t<strong>Licence checks:<\/strong> This task type updates your purchases carried out via the JTL-Extension Store every 4 hours.\t<\/li><\/ul>\t<p>When you create further entries, they will also be listed here.<\/p>\n\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/cron-queue-overview-jtl-shop-5-1.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/cron-queue-overview-jtl-shop-5-1-1024x194.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/cron-queue-overview-jtl-shop-5-1.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/cron-queue-overview-jtl-shop-5-1-1024x194.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/cron-queue-overview-jtl-shop-5-1-768x146.png 640w\" width=\"1024\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"194\" alt=\"Overview of existing Cron tasks in JTL-Shop 5\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/cron-queue-overview-jtl-shop-5-1.png&quot;,&quot;w&quot;:2169,&quot;h&quot;:411}\" class=\"img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-shop\" id=\"creating-a-new-queue-entry\">Creating a new queue entry <span id='anchor-creating-a-new-queue-entry' data-href='#creating-a-new-queue-entry' class='far fa-link' data-anchor><\/span><\/h2>\t<p>You can add more entries to the existing ones.<\/p>\n<ol start=\"1\" class=\"list-reset step mb-5 list-shop normal-step media-single-line\">\n\t<li >\n\tSwitch to the tab <span class=\"highlight\">Create queue entry<\/span>.<\/li><li >\n\tUnder <span class=\"highlight\">Type<\/span>, select the desired task.<\/li><\/ol><ul class=\"list-reset ml-3 list-icons list-custom-square list-shop\">\n\t<li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\t<strong>Image cache:<\/strong> Normally, images are only loaded in the required size when a customer opens the respective item in the front end. This lead to short but noticeable waiting times when an image is called up for the first time. To avoid this, you can store all required sizes in the image cache automatically.\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\t<strong>Status emails:<\/strong> Specify how often system emails with information on the status of your online shop are to be sent to you.\t<\/li><li >\n\t\t\t<span class=\"list-icon fas fa-square\"><\/span>\t\t<strong>Anonymisation of customer data:<\/strong> Here you can edit the preset task type <span class=\"highlight\">Anonymisation of customer data<\/span>.\t<\/li><\/ul><ol start=\"3\" class=\"list-reset step mb-5 list-shop normal-step media-single-line\">\n\t<li >\n\tInto <span class=\"highlight\">Frequency<\/span>, enter how many hours the interval for this Cron task should be.<\/li><li >\n\tEnter the desired <span class=\"highlight\">Start date<\/span> and <span class=\"highlight\">Start time<\/span>. For tasks that take a lot of resources, we recommend scheduling the Cron task for some time during the night when there will probably be very few visitors present. Ideally, the start time should be just after the nightly backup.<\/li><\/ol>\t\t\t\t\t\t<div data-gallery>\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/guide.jtl-software.com\/uploads\/create-queue-entry-cron-jtl-shop-5-1.png\" itemprop=\"contentUrl\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/guide.jtl-software.com\/uploads\/create-queue-entry-cron-jtl-shop-5-1.png\" srcset=\"https:\/\/guide.jtl-software.com\/uploads\/create-queue-entry-cron-jtl-shop-5-1.png 1600w,https:\/\/guide.jtl-software.com\/uploads\/create-queue-entry-cron-jtl-shop-5-1-1024x254.png 1024w,https:\/\/guide.jtl-software.com\/uploads\/create-queue-entry-cron-jtl-shop-5-1-768x191.png 640w\" width=\"2173\" sizes=\"auto, (max-width: 20em) 30vw, (max-width: 30em) 60vw, (max-width: 40em) 90vw\" height=\"540\" alt=\"Creating a Cron entry for the queue in JTL-Shop 5\" data-pswp=\"{&quot;src&quot;:&quot;https:\\\/\\\/guide.jtl-software.com\\\/uploads\\\/create-queue-entry-cron-jtl-shop-5-1.png&quot;,&quot;w&quot;:2173,&quot;h&quot;:540}\" class=\"img-fluid mb-5\">\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<h2 class=\"d-flex align-items-center hl-shop\" id=\"settings\">Settings <span id='anchor-settings' data-href='#settings' class='far fa-link' data-anchor><\/span><\/h2>\t<p>In the settings, you can activate the execution of the freshly created Cron taks and specify when it will be triggered.<\/p>\n<ol start=\"1\" class=\"list-reset step mb-5 list-shop normal-step media-single-line\">\n\t<li >\n\tSwitch to the <span class=\"highlight\">Settings<\/span> tab.<\/li><li >\n\tIf you have not already done so, activate the setting <span class=\"highlight\">Pseudo Cron Method<\/span> to make sure the Cron tasks will be carried out accordingly.<\/li><li class=\"media-single-line\">\n\tFor <span class=\"highlight\">Start server-to-server with every Xth call<\/span>, specify the interval in which the created Cron jobs are to be triggered in the queue. The more visitors there are in your online shop, the higher the value should be.<\/li><\/ol><div class=\"media-object media-object-border d-flex align-items-top\">\n\t\n\t\t\t\t<span class=\"mt-1 mr-3 fa-stack flex-shrink-0 fa-1x columnsize-fa-2x\">\n\t\t<span class=\"far fa-circle fa-stack-2x text-shop\"><\/span>\n\t\n\t\t<span class=\"fas fa-thumbtack text-shop fa-stack-1x\"><\/span>\n\t\t\t<\/span>\n\t\t\t<span class=\"media-content border-shop\">\n\t\n\t\t\t<strong>Example: <\/strong>You created a Cron task of the type <span class=\"highlight\">Customer data anonymisation<\/span> and set a <span class=\"highlight\">start time of 00:00<\/span> and a <span class=\"highlight\">frequency of 24 hours<\/span>. Pseudo Cron is enabled and <span class=\"highlight\">Start server-to-server with every Xth call<\/span> is set to <span class=\"highlight\">10<\/span>. With every tenth request to your online shop, e.g. by visitors or bots, JTL-Shop checks for open queue entries. If some are found, the shop checks whether the conditions for the start time and frequency are met. If yes, the corresponsing entries will be processed.\t\t\t<\/span>\n\t\n\t<\/div>\n\n\n[\/vc_column][\/vc_row]<\/div>","protected":false},"excerpt":{"rendered":"Contents Contents Managing Cron Your task\/initial situation You would like JTL-Shop to carry out background tasks that ensure the smooth <a href=\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/\">[...]<\/a>","protected":false},"author":9,"featured_media":0,"parent":187885,"menu_order":780,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"tags":[],"class_list":["post-185992","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Managing Cron &#8211; JTL-Guide<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Managing Cron &#8211; JTL-Guide\" \/>\n<meta property=\"og:url\" content=\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/\" \/>\n<meta property=\"og:site_name\" content=\"JTL-Guide\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-16T08:44:31+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/\",\"url\":\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/\",\"name\":\"Managing Cron &#8211; JTL-Guide\",\"isPartOf\":{\"@id\":\"https:\/\/guide.jtl-software.com\/en\/#website\"},\"datePublished\":\"2021-04-12T13:25:07+00:00\",\"dateModified\":\"2023-06-16T08:44:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/#breadcrumb\"},\"inLanguage\":\"en-en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"JTL-Shop\",\"item\":\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"System administration\",\"item\":\"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Managing Cron\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/guide.jtl-software.com\/en\/#website\",\"url\":\"https:\/\/guide.jtl-software.com\/en\/\",\"name\":\"JTL-Guide\",\"description\":\"Dokumentation f\u00fcr die gesamte Produktfamilie von JTL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/guide.jtl-software.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-en\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Managing Cron &#8211; JTL-Guide","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/","og_locale":"en_US","og_type":"article","og_title":"Managing Cron &#8211; JTL-Guide","og_url":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/","og_site_name":"JTL-Guide","article_modified_time":"2023-06-16T08:44:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/","url":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/","name":"Managing Cron &#8211; JTL-Guide","isPartOf":{"@id":"https:\/\/guide.jtl-software.com\/en\/#website"},"datePublished":"2021-04-12T13:25:07+00:00","dateModified":"2023-06-16T08:44:31+00:00","breadcrumb":{"@id":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/#breadcrumb"},"inLanguage":"en-en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/managing-cron\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"JTL-Shop","item":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/"},{"@type":"ListItem","position":2,"name":"System administration","item":"https:\/\/guide.jtl-software.com\/en\/jtl-shop\/system-administration\/"},{"@type":"ListItem","position":3,"name":"Managing Cron"}]},{"@type":"WebSite","@id":"https:\/\/guide.jtl-software.com\/en\/#website","url":"https:\/\/guide.jtl-software.com\/en\/","name":"JTL-Guide","description":"Dokumentation f\u00fcr die gesamte Produktfamilie von JTL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/guide.jtl-software.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-en"}]}},"_links":{"self":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/185992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/comments?post=185992"}],"version-history":[{"count":5,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/185992\/revisions"}],"predecessor-version":[{"id":205705,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/185992\/revisions\/205705"}],"up":[{"embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/pages\/187885"}],"wp:attachment":[{"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/media?parent=185992"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guide.jtl-software.com\/en\/wp-json\/wp\/v2\/tags?post=185992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}