{"id":1001644,"date":"2019-03-05T11:00:51","date_gmt":"2019-03-05T10:00:51","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=1001644"},"modified":"2021-06-25T10:55:28","modified_gmt":"2021-06-25T08:55:28","slug":"how-to-set-up-wp-rocket-on-trellis-and-bedrock","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/","title":{"rendered":"How to Set Up WP&nbsp;Rocket on Trellis and Bedrock"},"content":{"rendered":"<p><em>This is a guest post. Opinions and recommendations are the author\u2019s own and not necessarily those of WP Rocket.<\/em><\/p>\n<p>The team at <a href=\"https:\/\/roots.io\">Roots<\/a> developed two distinct products that simplify managing WordPress projects and codebases on your own server (e.g., a VPS, Digital Ocean droplet, AWS EC2 instance, etc.).<\/p>\n<p>These projects are <a href=\"https:\/\/roots.io\/bedrock\/\">Bedrock<\/a> and <a href=\"https:\/\/roots.io\/trellis\/\">Trellis<\/a>, which handle server provisioning and deployments.<\/p>\n<p>Setting up these two projects is outside of the scope of this article (but you can see <a href=\"https:\/\/css-tricks.com\/i-spun-up-a-scalable-wordpress-server-environment-with-trellis-and-you-can-too\/\">my tutorial on CSS-Tricks<\/a> about setting up Trellis): <strong>however, using WP Rocket with a Bedrock\/Trellis setup requires a bit of manual tuning which this article will cover<\/strong>.<\/p>\n<p>Trellis and Bedrock from the Roots team are my go-to for server creation, provisioning, and management for my\u00a0<a href=\"https:\/\/statenweb.com\">web development agency<\/a>. While it does have built-in FastCGI caching which can drastically speed up your site, that only covers expensive server-side computations.<br \/>\nThere still are still other, mostly front-end optimizations that a caching plugin like WP Rocket can handle for you with minimal configuration.<\/p>\n<p>WP Rocket comes packed with functionality to minify your HTML, CSS, and JavaScript, along with concatenating scripts (not as useful with HTTP\/2.0&#8217;s multiplexing feature), automatic lazy loading images, disable oEmbeds and emojis and more.<\/p>\n<p>What I hope to accomplish in this guide is a straightforward explanation of how to properly setup WP Rocket when using Trellis and Bedrock.<\/p>\n<h2>How to start setting up WP Rocket on Bedrock<\/h2>\n<p>Before we get started, since <a href=\"https:\/\/getcomposer.org\">Composer<\/a> powers Bedrock, we need to get WP Rocket into our project as a Composer dependency, which is not as straightforward as it may appear, at least at the time of this writing.<\/p>\n<p>WP Rocket offers a package on <a href=\"https:\/\/packagist.org\">packagist.org<\/a>, the official Composer package repository, <a href=\"https:\/\/packagist.org\/packages\/wp-media\/wp-rocket\">which can be found here<\/a>; however, there is an issue with one of its dependencies, <code>a5hleyrich\/wp-background-processing<\/code>.<\/p>\n<p>To get around this, we need to add in a separate repository (https:\/\/github.com\/tabrisrp\/wp-background-processing) in our site&#8217;s composer.json file demonstrated below:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/matgargano\/5d97432e347b3622977461f8f357ae72.js\"><\/script><\/p>\n<p>After adding that, simply execute <code>composer require wp-media\/wp-rocket<\/code> and it should install properly.<\/p>\n<p>Now that we set up the Bedrock side of things, we need to set up the plugin to work with Trellis.<\/p>\n<div id=\"om-vhommyfcghnxb3ebtozu-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'vhommyfcghnxb3ebtozu')<\/script>\n<h2>How to make WP Rocket work with Trellis<\/h2>\n<p>First, you need your WP Rocket key and WP Rocket email. The way I did this was logging into the WP Rocket website, and from the <em>License<\/em> tab, I downloaded the plugin. The file <code>licence-data.php<\/code> in the root of the plugin contains the WP Rocket key and email which are defined in constants, similar to below:<\/p>\n<blockquote><p><code><br \/>\nif ( ! defined( 'WP_ROCKET_KEY' ) ) {<br \/>\ndefine( 'WP_ROCKET_KEY', '12345fake');<br \/>\n}<\/code><br \/>\n<code><br \/>\n\/\/ Your email, the one you used for the purchase.<br \/>\nif ( ! defined( 'WP_ROCKET_EMAIL' ) ) {<br \/>\ndefine( 'WP_ROCKET_EMAIL', 'fake@fakeguy.com' );<br \/>\n}<\/code><\/p><\/blockquote>\n<p>We are going to store these two as variables in the production vault.yml file, located at <code>\/trellis\/group_vars\/production\/vault.yml<\/code>.<\/p>\n<p>Open the file and add to the <code>vault_wordpress_sites &gt; {yourdomain.com} &gt; env<\/code> key as <code>wp_rocket_key<\/code> and <code>wp_rocket_email<\/code>.<\/p>\n<p>Below is an example vault.yml:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/matgargano\/9b5fa4418a222ff8727a33397c70c24a.js\"><\/script><\/p>\n<p>Replace <code>wp_rocket_key<\/code> and <code>wp_rocket_email<\/code> with the values from your WP Rocket account.<\/p>\n<p>Also, as a side note, make sure you are encrypting your vault files and not storing them in the clear in your repository.<\/p>\n<p>Next, set the <code>WP_CACHE<\/code> constant to <code>true<\/code> and WP Rocket key and email in the environment(s) you want to cache.<\/p>\n<p>I typically only cache production, so to accomplish this, I add the following to <code>\/site\/config\/environments\/production.php<\/code> :<\/p>\n<blockquote><p><code><br \/>\nif ( env( 'WP_ROCKET_KEY' ) ) {<br \/>\ndefine( 'WP_ROCKET_KEY', env( 'WP_ROCKET_KEY' ) );<br \/>\n}<br \/>\n\/\/ Your email, the one you used for the purchase.<br \/>\nif ( env( 'WP_ROCKET_EMAIL' ) ) {<br \/>\ndefine( 'WP_ROCKET_EMAIL', env( 'WP_ROCKET_EMAIL' ) );<br \/>\n}<br \/>\ndefine('WP_CACHE', true);<br \/>\n<\/code><\/p><\/blockquote>\n<p>This code will grab the environment variable we set in the vault file and set it accordingly.<\/p>\n<p>If you want to cache on all environments, you can drop the same code in the <code>\/site\/config\/application.php<\/code> file anywhere below the initialization of the <code>\\DotEnv\\DotEnv<\/code> object.<\/p>\n<p>Next, let&#8217;s set up the directories and <em>advanced-cache.php<\/em> file and WordPress&#8217; access to them.<br \/>\nTo do this, edit the <code>trellis\/roles\/deploy\/defaults\/main.yml<\/code> file and under the key <code>project_shared_children<\/code> add:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/matgargano\/5da7ee378a036ee966fb4894e35e7187.js\"><\/script><\/p>\n<p>This block ensures that the proper directories, along with the <code>advanced-cache.php<\/code> file are created and access is properly set up.<\/p>\n<p>Lastly, let&#8217;s make sure that the file <code>advanced-cache.php<\/code> exists when we deploy.<br \/>\nUpdate <code>trellis\/roles\/deploy\/hooks\/build-after.yml<\/code> by adding:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/matgargano\/d7ef897b02f800bdfd8bf74b2d941768.js\"><\/script><\/p>\n<p>That should be all. Just provision, deploy, and setup WP Rocket as you normally would. Enjoy using WP Rocket and all its optimizations!\u00a0?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a guest post. Opinions and recommendations are the author\u2019s own and not necessarily those of WP&nbsp;Rocket. The team at Roots developed two distinct products that simplify managing WordPress projects and codebases on your own server (e.g., a VPS, Digital Ocean droplet, AWS EC2 instance, etc.). These projects are Bedrock and Trellis, which [&hellip;]<\/p>\n","protected":false},"author":88089,"featured_media":1002354,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-1001644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Up WP Rocket on Trellis and Bedrock?<\/title>\n<meta name=\"description\" content=\"How to setup WP Rocket when you&#039;re using Trellis and Bedrock? Our tutorial provides the step-by-step process for a successful implementation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up WP Rocket on Trellis and Bedrock?\" \/>\n<meta property=\"og:description\" content=\"How to setup WP Rocket when you&#039;re using Trellis and Bedrock? Our tutorial provides the step-by-step process for a successful implementation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-05T10:00:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-25T08:55:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mat Gargano\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mat Gargano\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\"},\"author\":{\"name\":\"Mat Gargano\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/45e8995f9abf4f3975416290101ac372\"},\"headline\":\"How to Set Up WP&nbsp;Rocket on Trellis and Bedrock\",\"datePublished\":\"2019-03-05T10:00:51+00:00\",\"dateModified\":\"2021-06-25T08:55:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\"},\"wordCount\":659,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\",\"name\":\"How to Set Up WP Rocket on Trellis and Bedrock?\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png\",\"datePublished\":\"2019-03-05T10:00:51+00:00\",\"dateModified\":\"2021-06-25T08:55:28+00:00\",\"description\":\"How to setup WP Rocket when you're using Trellis and Bedrock? Our tutorial provides the step-by-step process for a successful implementation.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png\",\"width\":1100,\"height\":460,\"caption\":\"How to Set Up WP Rocket on Trellis and Bedrock\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Set Up WP&nbsp;Rocket on Trellis and Bedrock\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/45e8995f9abf4f3975416290101ac372\",\"name\":\"Mat Gargano\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/563fc8ad094f424cfd9ac323b9614d72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/563fc8ad094f424cfd9ac323b9614d72?s=96&d=mm&r=g\",\"caption\":\"Mat Gargano\"},\"description\":\"Mat serves as chief technologist and lead developer for StatenWeb. He enjoys solving problems and automating all of the annoying things in life.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up WP Rocket on Trellis and Bedrock?","description":"How to setup WP Rocket when you're using Trellis and Bedrock? Our tutorial provides the step-by-step process for a successful implementation.","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:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up WP Rocket on Trellis and Bedrock?","og_description":"How to setup WP Rocket when you're using Trellis and Bedrock? Our tutorial provides the step-by-step process for a successful implementation.","og_url":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-03-05T10:00:51+00:00","article_modified_time":"2021-06-25T08:55:28+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png","type":"image\/png"}],"author":"Mat Gargano","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Mat Gargano","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/"},"author":{"name":"Mat Gargano","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/45e8995f9abf4f3975416290101ac372"},"headline":"How to Set Up WP&nbsp;Rocket on Trellis and Bedrock","datePublished":"2019-03-05T10:00:51+00:00","dateModified":"2021-06-25T08:55:28+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/"},"wordCount":659,"commentCount":1,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/","url":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/","name":"How to Set Up WP Rocket on Trellis and Bedrock?","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png","datePublished":"2019-03-05T10:00:51+00:00","dateModified":"2021-06-25T08:55:28+00:00","description":"How to setup WP Rocket when you're using Trellis and Bedrock? Our tutorial provides the step-by-step process for a successful implementation.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-set-up-wp-rocket-on-trellis-and-bedrock.png","width":1100,"height":460,"caption":"How to Set Up WP Rocket on Trellis and Bedrock"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/how-to-set-up-wp-rocket-on-trellis-and-bedrock\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"How to Set Up WP&nbsp;Rocket on Trellis and Bedrock"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/45e8995f9abf4f3975416290101ac372","name":"Mat Gargano","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/563fc8ad094f424cfd9ac323b9614d72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/563fc8ad094f424cfd9ac323b9614d72?s=96&d=mm&r=g","caption":"Mat Gargano"},"description":"Mat serves as chief technologist and lead developer for StatenWeb. He enjoys solving problems and automating all of the annoying things in life."}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1001644"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/88089"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=1001644"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1001644\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1002354"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=1001644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=1001644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=1001644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}