{"id":301494,"date":"2021-08-16T10:41:51","date_gmt":"2021-08-16T10:41:51","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=301494"},"modified":"2021-08-26T08:01:01","modified_gmt":"2021-08-26T08:01:01","slug":"automatic-re-indexing-using-environment-variable","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/","title":{"rendered":"Automatic Re-Indexing Using Environment Variable"},"content":{"rendered":"\n<p>In Magento 2.4.3, we can enable automatic re-indexing using cronjob by just using the environment variable. To install Magento 2.4,  read this blog <a href=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/webkul.com\/blog\/installing-magento2-4\/<\/a>.<\/p>\n\n\n\n<p>The <strong>use_application_lock<\/strong> indexing mode is used to enable the automatic re-indexing process and can be enabled using the <strong>app\/etc\/env.php<\/strong> file. This mode returns a more accurate status of the indexers. The status is available on the indexer grid in the Magento Admin.<\/p>\n\n\n\n<p>If an indexer fails, Magento will now see this and the cronjob will pick up the indexer to try it again. Without this mode, it is necessary to manually reset the indexer when it failed.<\/p>\n\n\n\n<p>So, we need to write the following code in the <strong>env.php<\/strong> file to enable the use_application_lock indexing mode.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nreturn &#091;\n    &#039;indexer&#039; =&gt; &#091;\n        &#039;use_application_lock&#039; =&gt; true\n    ]\n];<\/pre>\n\n\n\n<p>This is how we can enable automatic re-indexing using an environment variable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Platform Enhancements and Infrastructure Improvements<\/h2>\n\n\n\n<p>As Magento Open Source 2.4.3 comes up with powerful enhancements and security fixes, some major enhancements are &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>PageBuilder &#8211;<\/strong> Page Builder is now available as an extension in Magento Open Source, also it is now the default content editing tool for Magento Open Source.<\/li><li><strong>ReCaptcha Expansion &#8211;<\/strong> The reCaptcha coverage expands to enhance the security. We can add reCaptcha on the <strong>Checkout\/Place Order<\/strong> page from the admin configurations.<\/li><li><strong>Paypal Pay Later &#8211;<\/strong> The Paypal Pay Later payment is available in Magento 2.4.3. The shoppers who want to pay for  an order in bi-weekly installments can use the Paypal Pay Later payment.<\/li><\/ul>\n\n\n\n<p>This powerful latest version of Magento 2 comes up with many security fixes in major areas like <strong>GraphQl, PWA studio, Integration Apis, Rate Limiting, etc.<\/strong> To know about all the updates, you can go through Magento 2.4.3 release note &#8211; <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/release-notes\/open-source-2-4-3.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/devdocs.magento.com\/guides\/v2.4\/release-notes\/open-source-2-4-3.html<\/a>. <\/p>\n\n\n\n<p>This is a knowledge base article for Magento 2.4.3. If you still have any issues, feel free to add a ticket. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Magento 2.4.3, we can enable automatic re-indexing using cronjob by just using the environment variable. To install Magento 2.4, read this blog https:\/\/webkul.com\/blog\/installing-magento2-4\/. The use_application_lock indexing mode is used to enable the automatic re-indexing process and can be enabled using the app\/etc\/env.php file. This mode returns a more accurate status of the indexers. The <a href=\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":361,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121,1],"tags":[],"class_list":["post-301494","post","type-post","status-publish","format-standard","hentry","category-magento-2","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Automatic Re-Indexing Using Environment Variable - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Automatic re-indexing using environment variable can be enabled by using the use_application_lock indexing mode.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatic Re-Indexing Using Environment Variable - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Automatic re-indexing using environment variable can be enabled by using the use_application_lock indexing mode.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-16T10:41:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-26T08:01:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vishesh Dwivedi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vishesh Dwivedi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\"},\"author\":{\"name\":\"Vishesh Dwivedi\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5cc3f110d01e2a543b6c428dd7d50082\"},\"headline\":\"Automatic Re-Indexing Using Environment Variable\",\"datePublished\":\"2021-08-16T10:41:51+00:00\",\"dateModified\":\"2021-08-26T08:01:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\"},\"wordCount\":322,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\",\"url\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\",\"name\":\"Automatic Re-Indexing Using Environment Variable - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2021-08-16T10:41:51+00:00\",\"dateModified\":\"2021-08-26T08:01:01+00:00\",\"description\":\"Automatic re-indexing using environment variable can be enabled by using the use_application_lock indexing mode.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2.4.3 Features\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5cc3f110d01e2a543b6c428dd7d50082\",\"name\":\"Vishesh Dwivedi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dc989f00913b5a795e49f513661421421ab49040b61b7170ebb230c3a8b15680?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dc989f00913b5a795e49f513661421421ab49040b61b7170ebb230c3a8b15680?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vishesh Dwivedi\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vishesh-dwivedi981\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatic Re-Indexing Using Environment Variable - Webkul Blog","description":"Automatic re-indexing using environment variable can be enabled by using the use_application_lock indexing mode.","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:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/","og_locale":"en_US","og_type":"article","og_title":"Automatic Re-Indexing Using Environment Variable - Webkul Blog","og_description":"Automatic re-indexing using environment variable can be enabled by using the use_application_lock indexing mode.","og_url":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-08-16T10:41:51+00:00","article_modified_time":"2021-08-26T08:01:01+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Vishesh Dwivedi","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vishesh Dwivedi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/"},"author":{"name":"Vishesh Dwivedi","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5cc3f110d01e2a543b6c428dd7d50082"},"headline":"Automatic Re-Indexing Using Environment Variable","datePublished":"2021-08-16T10:41:51+00:00","dateModified":"2021-08-26T08:01:01+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/"},"wordCount":322,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/","url":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/","name":"Automatic Re-Indexing Using Environment Variable - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2021-08-16T10:41:51+00:00","dateModified":"2021-08-26T08:01:01+00:00","description":"Automatic re-indexing using environment variable can be enabled by using the use_application_lock indexing mode.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/automatic-re-indexing-using-environment-variable\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento 2.4.3 Features"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5cc3f110d01e2a543b6c428dd7d50082","name":"Vishesh Dwivedi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dc989f00913b5a795e49f513661421421ab49040b61b7170ebb230c3a8b15680?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc989f00913b5a795e49f513661421421ab49040b61b7170ebb230c3a8b15680?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vishesh Dwivedi"},"url":"https:\/\/webkul.com\/blog\/author\/vishesh-dwivedi981\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/301494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/361"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=301494"}],"version-history":[{"count":3,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/301494\/revisions"}],"predecessor-version":[{"id":301506,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/301494\/revisions\/301506"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=301494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=301494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=301494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}