{"id":374464,"date":"2023-03-29T10:19:32","date_gmt":"2023-03-29T10:19:32","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=374464"},"modified":"2024-07-10T07:49:52","modified_gmt":"2024-07-10T07:49:52","slug":"caching-in-magento2adobe-commerce-tips-and-tricks","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/","title":{"rendered":"Caching in Magento2(Adobe Commerce) tips and tricks:"},"content":{"rendered":"\n<p>While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush the cache and run static content deploy.<\/p>\n\n\n\n<p>I am going to share some tips and tricks that I used while in <a href=\"https:\/\/webkul.com\/magento-development\/\">Magento 2 development<\/a> to overcome these time-consuming steps.<\/p>\n\n\n\n<p>Let me give a brief explanation of caching itself then we will move on to our topic, Magento is a highly scalable system.<\/p>\n\n\n\n<p>Here you have the luxury to easily change the behavior of any functionality without even changing anything in the core so every customization can be separated in each <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Magento 2 module <\/a>without even touching the core files.<\/p>\n\n\n\n<p>But all this comes with a price which is speed, to solve this Magento uses caching, caching simply means once an output is generated from an expensive function it must be preserved and returned back.<\/p>\n\n\n\n<p>If the same function is called again so the second time system won\u2019t run and already saved result will be served which makes the system much faster in second time execution.<\/p>\n\n\n\n<p>There are different ways of achieving this in Magento by using FPC, varnish, redis, etc, we will learn all these things in different blog articles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Signing Static Files:<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"485\" data-id=\"374465\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png\" alt=\"static_file_settings\" class=\"wp-image-374465\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-300x121.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-250x101.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-768x311.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1536x621.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings.png 1753w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Static File Settings<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>In the image you can see this setting in store > configurations > Advanced > Developer, if this setting is yes then all the static files loading on the front end are signed which simply means that you will find a version number added in the static files URL, it affects browser caching. <\/p>\n\n\n\n<p>The version number only changes when we run the below command in Magento2 :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:static-content:deploy<\/pre>\n\n\n\n<p>after running above command version number changes and the browser gets a fresh file URL and it fetches directly from the server not from the browser caching.<\/p>\n\n\n\n<p>version number is saved in a file located here:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">MAGENTO_ROOT\/pub\/static\/deployed_version.txt<\/pre>\n\n\n\n<p>While in development you can open this file in the editor and after making any changes to the static files.<\/p>\n\n\n\n<p>You can simply change the version number in deployed_version.txt and reload the page all the changes will reflect without running static content deploy but the Magento should be in the developer mode.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Frontend Workflow<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"622\" data-id=\"374466\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow-1200x622.png\" alt=\"frontend_workflow\" class=\"wp-image-374466\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow-1200x622.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow-300x156.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow-250x130.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow-768x398.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow-1536x796.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/frontend_workflow.png 1726w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Less Compilation Configuration<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>The above setting is very useful when you are working on a theme and you need to write less css, each time you make any changes in the less file you need to run the static content deploy command to reflect those changes on the front-end.<\/p>\n\n\n\n<p>There are two useful methods to do that, first one is using grunt js.<\/p>\n\n\n\n<p>Another way is to change the &#8220;Frontend Development Workflow&#8221; to \u201cClient Side less compilation\u201d That way each time you will refresh the frontend less will compile automatically without running any command. This is very helpful and does not require any extra installations or settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>If FPC (full page cache) or varnish is enabled<\/strong><\/h2>\n\n\n\n<p>If you are working on a client site and all the caching is enabled after making any changes if you want to verify it, you need to flush or <a href=\"https:\/\/webkul.com\/blog\/how-to-clean-and-flush-cache-programmatically-in-magento2\/\">clean Magento cache<\/a> and also reload web server to purge varnish cache that is very time taking and not very elegant.<\/p>\n\n\n\n<p>instead you can simple add a query string in the URL like this :<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<\/blockquote>\n\n\n\n<pre class=\"EnlighterJSRAW\">https:&#047;&#047;magento-url\/any-page\/?RANDOM_QUERY_STRING<\/pre>\n\n\n\n<p>this way URL is changed and Magento FPC and varnish will consider it a fresh page and will send the request to the server instead of returning a cached page and you can easily verify the changes you have made are working or not.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Purging Varnish Cache<\/strong><\/h2>\n\n\n\n<p>Lets understand what is varnish, it is a reverse proxy server which sits on the server side and all the http requests comes to the server through it.<\/p>\n\n\n\n<p>If the request is already cached on the varnish it will not sent it to the server and return the response directly to the client because of that it is also called http accelerator.<\/p>\n\n\n\n<p>Working with varnish can be tricky if you don\u2019t understand it better you will face a lot of challenges in development. If Magento is in <a href=\"https:\/\/webkul.com\/blog\/magento2-mode\/\">developer mode<\/a> then you can check if varnish is properly working or not by simply running this curl command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">curl -I -v \u2013location-trusted \u2018https:\/\/magento-url\/\u2019<\/pre>\n\n\n\n<p>this will return below Headers :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">X-Magento-cache-debug: MISS<\/pre>\n\n\n\n<p>and if varnish is setup perfectly second time you will check it will return<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">X-Magento-cache-debug: HIT<\/pre>\n\n\n\n<p>now to purge all the varnish cache on the server you will have to restart the varnish server this is the easiest way to purge all the cache here is the command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">service varnish restart<\/pre>\n\n\n\n<p>but if you want to only purge specific URL, you can do that too using below curl request :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">curl -I -X PURGE -H &quot;X-Magento-Tags-Pattern: .*&quot; https:\/\/magento-url\/<\/pre>\n\n\n\n<p>but this will only work if you have downloaded the varnish configurable file from varnish configuration :<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"519\" data-id=\"374468\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration-1200x519.png\" alt=\"varnish caching\" class=\"wp-image-374468\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration-1200x519.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration-300x130.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration-250x108.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration-768x332.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration-1536x664.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/varnish_configuration.png 1650w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">varnish caching configuration<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p>and replaced it with default.vcl file located in(location can be different according to linux distribution you are using) :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">etc\/varnish\/default.vcl<\/pre>\n\n\n\n<p>Hope this will help you in your development, will share more articles on magento caching in the future as it is huge, stay tuned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush the cache and run static content deploy. I am going to share some tips and tricks that I used while in Magento 2 development to overcome these time-consuming steps. Let me <a href=\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13710,9121],"tags":[12967,3355,2070,6977],"class_list":["post-374464","post","type-post","status-publish","format-standard","hentry","category-caching","category-magento-2","tag-adobe-commerce","tag-caching","tag-magento2","tag-varnish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Caching in Magento2(Adobe Commerce) tips and tricks: - Webkul Blog<\/title>\n<meta name=\"description\" content=\"While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush cache\" \/>\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\/caching-in-magento2adobe-commerce-tips-and-tricks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Caching in Magento2(Adobe Commerce) tips and tricks: - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush cache\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\" \/>\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=\"2023-03-29T10:19:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-10T07:49:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png\" \/>\n<meta name=\"author\" content=\"Ashutosh Srivastava\" \/>\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=\"Ashutosh Srivastava\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\"},\"author\":{\"name\":\"Ashutosh Srivastava\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5555025750ec4e4df34fadc78b083970\"},\"headline\":\"Caching in Magento2(Adobe Commerce) tips and tricks:\",\"datePublished\":\"2023-03-29T10:19:32+00:00\",\"dateModified\":\"2024-07-10T07:49:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\"},\"wordCount\":837,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png\",\"keywords\":[\"Adobe Commerce\",\"caching\",\"Magento2\",\"varnish\"],\"articleSection\":[\"Caching\",\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\",\"url\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\",\"name\":\"Caching in Magento2(Adobe Commerce) tips and tricks: - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png\",\"datePublished\":\"2023-03-29T10:19:32+00:00\",\"dateModified\":\"2024-07-10T07:49:52+00:00\",\"description\":\"While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush cache\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings.png\",\"width\":1753,\"height\":709,\"caption\":\"static_file_settings\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Caching in Magento2(Adobe Commerce) tips and tricks:\"}]},{\"@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\/5555025750ec4e4df34fadc78b083970\",\"name\":\"Ashutosh Srivastava\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?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\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ashutosh Srivastava\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/ashutosh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Caching in Magento2(Adobe Commerce) tips and tricks: - Webkul Blog","description":"While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush cache","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\/caching-in-magento2adobe-commerce-tips-and-tricks\/","og_locale":"en_US","og_type":"article","og_title":"Caching in Magento2(Adobe Commerce) tips and tricks: - Webkul Blog","og_description":"While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush cache","og_url":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-03-29T10:19:32+00:00","article_modified_time":"2024-07-10T07:49:52+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png","type":"","width":"","height":""}],"author":"Ashutosh Srivastava","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ashutosh Srivastava","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/"},"author":{"name":"Ashutosh Srivastava","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5555025750ec4e4df34fadc78b083970"},"headline":"Caching in Magento2(Adobe Commerce) tips and tricks:","datePublished":"2023-03-29T10:19:32+00:00","dateModified":"2024-07-10T07:49:52+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/"},"wordCount":837,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png","keywords":["Adobe Commerce","caching","Magento2","varnish"],"articleSection":["Caching","Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/","url":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/","name":"Caching in Magento2(Adobe Commerce) tips and tricks: - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings-1200x485.png","datePublished":"2023-03-29T10:19:32+00:00","dateModified":"2024-07-10T07:49:52+00:00","description":"While in development many times Magento caching can become a pain and each time you make any changes you have to clean or flush cache","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/static_file_settings.png","width":1753,"height":709,"caption":"static_file_settings"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/caching-in-magento2adobe-commerce-tips-and-tricks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Caching in Magento2(Adobe Commerce) tips and tricks:"}]},{"@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\/5555025750ec4e4df34fadc78b083970","name":"Ashutosh Srivastava","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?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\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ashutosh Srivastava"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/ashutosh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/374464","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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=374464"}],"version-history":[{"count":9,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/374464\/revisions"}],"predecessor-version":[{"id":452248,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/374464\/revisions\/452248"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=374464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=374464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=374464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}