{"id":965,"date":"2024-05-07T11:46:27","date_gmt":"2024-05-07T11:46:27","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/background-processing-using-cron-jobs-in-shortpixel-image-optimizer\/"},"modified":"2025-08-27T08:39:06","modified_gmt":"2025-08-27T08:39:06","password":"","slug":"background-processing-using-cron-jobs-in-shortpixel-image-optimizer","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/background-processing-using-cron-jobs-in-shortpixel-image-optimizer\/","title":{"rendered":"Settings &#8211; Background mode"},"content":{"rendered":"\n<p>Starting with version 5.6.0 of the&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noreferrer noopener\">ShortPixel Image Optimizer (SPIO)<\/a>&nbsp;plugin, a new feature has been added:&nbsp;<strong>Background mode.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"433\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015-1024x433.jpg\" alt=\"\" class=\"wp-image-1360\" srcset=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015-1024x433.jpg 1024w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015-300x127.jpg 300w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015-768x325.jpg 768w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015-1536x650.jpg 1536w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015-360x152.jpg 360w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241126_143015.jpg 1779w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In short, this feature allows image optimization without the need to have one of\u00a0<a href=\"https:\/\/shortpixel.com\/knowledge-base\/article\/on-what-pages-does-spio-optimize-images\" rel=\"noopener\">these browser windows<\/a>\u00a0open. When images are added to the processing queue for optimization and none of the browser windows are open, SPIO adds cron jobs to perform the processing in the background.<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background\">It is important to note that this optimization method can be&nbsp;<strong>significantly slower<\/strong>&nbsp;for low-traffic websites or shared hosting, depending on the server resources allocated by the host. If you notice a significant increase in server resource usage or processing time, you should consider <strong>disable Background mode<\/strong> and switching to browser-based optimization.<\/p>\n\n\n\n<p>To enable Background mode, you can either go to Settings &gt; ShortPixel &gt; Processing in your WordPress dashboard and enable it from there, or you can go to Media Library &gt; Bulk ShortPixel and start a bulk optimization process with the Background mode option enabled.<\/p>\n\n\n\n<p>Another important aspect is the way&nbsp;<a href=\"https:\/\/developer.wordpress.org\/plugins\/cron\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP-Cron<\/a>&nbsp;works. By default, it is not the same as a server-side\/system cron and&nbsp;<a href=\"https:\/\/developer.wordpress.org\/plugins\/cron\/\" target=\"_blank\" rel=\"noreferrer noopener\">is triggered on page load<\/a>. In other words: If no one visits a site with Background mode enabled, most likely nothing will be optimized because the cron jobs will not be triggered. Some hosts (mostly managed WordPress hosts) disable the default WordPress cron system and enable a system cron that triggers the WP-Cron scheduler, which works more reliably. If you are faced with the situation that the Background mode does not seem to do anything, please contact your host and ask them how they handle WordPress cron events.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starting with version 5.6.0 of the&nbsp;ShortPixel Image Optimizer (SPIO)&nbsp;plugin, a new feature has been added:&nbsp;Background mode. In short, this feature allows image optimization without the need to have one of\u00a0these browser windows\u00a0open. When images are added to the processing queue for optimization and none of the browser windows are open, SPIO adds cron jobs to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[37],"glossaries":[],"doc_tag":[],"class_list":["post-965","docs","type-docs","status-publish","hentry","doc_category-shortpixel-image-optimizer"],"blocksy_meta":[],"year_month":"2026-04","word_count":279,"total_views":"3058","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Image Optimizer","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-image-optimizer\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=965"}],"version-history":[{"count":3,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/965\/revisions"}],"predecessor-version":[{"id":2015,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/965\/revisions\/2015"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=965"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=965"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=965"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}