{"id":8502,"date":"2024-06-03T12:34:41","date_gmt":"2024-06-03T12:34:41","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=8502"},"modified":"2024-06-03T12:34:43","modified_gmt":"2024-06-03T12:34:43","slug":"how-to-disable-cs-cart-compilation-and-boost-site-performance","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/how-to-disable-cs-cart-compilation-and-boost-site-performance\/","title":{"rendered":"How to Disable CS-Cart Compilation and Boost Site Performance"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 1,595<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>To disable the template compilation feature in CS-Cart, you can follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disabling Template Compilation in CS-Cart<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access CS-Cart Admin Panel<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to your CS-Cart admin panel.<\/li>\n<\/ul>\n\n\n\n<p>     2. <strong>Navigate to the Design Section<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <code>Design<\/code> > <code>Templates<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>    3. <strong>Disable Compilation<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the <code>Templates<\/code> section, look for the <code>Settings<\/code> or <code>Options<\/code> button, which may be located in the top right corner.<\/li>\n\n\n\n<li>Find the option related to template compilation (usually named something like &#8220;Recompile templates if the templates files were modified&#8221;).<\/li>\n\n\n\n<li>Uncheck this option to disable automatic template compilation.<\/li>\n<\/ul>\n\n\n\n<p>   4. <strong>Save Changes<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the <code>Save<\/code> button to apply the changes.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Manual Configuration via Config File<\/h3>\n\n\n\n<p>If you prefer or need to manually disable compilation via the configuration file, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Edit the Configuration File<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your CS-Cart installation directory.<\/li>\n\n\n\n<li>Locate and open the <code>config.local.php<\/code> file for editing. This file is typically located in the root directory of your CS-Cart installation.<\/li>\n<\/ul>\n\n\n\n<p>    2. <strong>Modify Compilation Settings<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Look for the setting related to template compilation. Add or modify the following line:<br><code>php $config['tweaks']['recompile_templates'] = false;<\/code><\/li>\n<\/ul>\n\n\n\n<p>   3. <strong>Save and Close<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Save the changes to <code>config.local.php<\/code> and close the file.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Clearing Cache<\/h3>\n\n\n\n<p>After disabling the template compilation, it&#8217;s a good practice to clear the CS-Cart cache to ensure the changes take effect properly.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Clear Cache via Admin Panel<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <code>Administration<\/code> > <code>Storage<\/code> > <code>Clear cache<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>     2. <strong>Clear Cache Manually<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Alternatively, you can clear the cache manually by deleting the contents of the <code>var\/cache<\/code> directory within your CS-Cart installation directory.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Summary<\/h3>\n\n\n\n<p>Disabling template compilation in CS-Cart can be done via the admin panel or by manually editing the <code>config.local.php<\/code> file. Remember to clear the cache after making these changes to ensure they take effect. This can help in development environments where you want to prevent CS-Cart from recompiling templates automatically after every change.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1,595 Views To disable the template compilation feature in CS-Cart, you can follow these steps: Disabling Template Compilation in CS-Cart 2. Navigate to the Design Section: 3. Disable Compilation: 4. Save Changes: Manual Configuration via Config File If you prefer or need to manually disable compilation via the configuration file, follow these steps: 2. Modify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[82],"tags":[],"class_list":["post-8502","post","type-post","status-publish","format-standard","hentry","category-cs-cart"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8502"}],"version-history":[{"count":1,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8502\/revisions"}],"predecessor-version":[{"id":8503,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8502\/revisions\/8503"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}