# Summary
Boost provides static page caching for Drupal enabling a very significant performance and scalability boost for sites that receive mostly anonymous traffic. For shared hosting this is your best option in terms of improving performance. On dedicated servers, you may want to consider Varnish instead.
# Project URL
https://www.drupal.org/project/boost
# Where is the code?
https://git.drupalcode.org/project/boost
# Estimated completion date
Unknown
# Dependencies
Unknown
# Who's doing the port?
Initial development was done by "swim". Active development by "C_Logemann"
# What help do they need?
Testing, documentation, and adding code for additional features.
# D8 roadmap
https://www.drupal.org/node/2009898
# Background and reference information
Unknown
Comments
Comment #2
bojanz commentedDoesn't dynamic_page_cache in core basically make boost obsolete?
Comment #3
geerlingguy commented@bojanz - I don't think the dynamic_page_cache bypasses PHP entirely. Boost makes it possible to basically run an entire Drupal site with Apache and no PHP overhead. I use it a lot less nowadays, since Nginx and Varnish are so much nicer/easier to set up for static caching, but it still has it's place. D8 has made great strides, though, and it might be enough for some people to not consider Boost anymore.
Comment #4
wim leers@geerlingguy is mostly correct.
I don't think Dynamic Page Cache is even relevant here. Boost is about serving static HTML to anonymous users. So Page Cache is the correct comparison here. And D8 ships with Page Cache enabled by default, so indeed for many sites Boost will no longer be necessary: Page Cache will be enough.
But, because Boost caches to disk and uses Apache rewrite rules rather than Page Cache's caching to a cache backend (usually database) using PHP, Boost still can make sense.
Boost in D8 should probably disable Page Cache's middleware in D8, because when you use Boost, it's pointless to also use Page Cache. OTOH, I don't know how well Boost handles session cookies, so maybe that's a bit premature.
Comment #5
gaëlg@wimleers - then shouldn't the new Boost just set a file cache backend for Page cache?
Comment #6
wim leers@GaëlG, no, again, Boost allows you to serve static HTML directly from Apache. i.e. zero PHP executed. A File cache back-end for the Page Cache does still execute PHP.
Comment #7
littledynamo commentedI came across a D8 version of boost on Github - https://github.com/swim/boost. No Apache config yet though.
Comment #8
joseph.olstadWould be nice to have this in D8 at some point although we're not switching to D8 yet.
For D7, we LOVE boost to cache json (ajax) and pages, we've perfected our rewrite rules and regex so that it works extremely well and we also created a module called boost_blast to make sure that the caches are completely cleared when we want them to be. Our site is pretty small, only about 20000 pages.
Here is our rewriteRules (for IIS) , eventually we'll switch to Apache or nginx
adding this to our rewrite rules was necessary:
<add input="{URL}" pattern="\.(jpe?g|gif|png)$" negate="true" />prevents jpeg/gif/png to be cached as html , happens when image styles are being processed and the server responds with text saying ("compiling image style please wait") instead of the image
Comment #9
giorgio79 commentedProposed static html caching for Drupal core
#2957610: Static HTML file caching in Drupal Core - Boost
Comment #10
giorgio79 commentedAnd symfony already has a static cache plugins with htaccess rewrite rules https://packagist.org/packages/pablok/supercache-bundle
Comment #11
wim leersComment #12
giorgio79 commentedThanks Wim. :) Just updated the description of the core idea issue: the Wordpress counterpart of Boost has over 2 million installs, so I am sure there would be demand if there was a working solution :P https://wordpress.org/plugins/wp-super-cache/
Comment #13
giorgio79 commentedSome progress was made here as well :) #2009898: Port Boost for Drupal 8
Comment #14
c-logemannComment #15
avpadernoComment #16
avpadernoThe project does not have releases for supported Drupal versions.
Comment #17
joseph.olstadwhy would this be closed as "outdated"?
There's been a lot of work done and there is a dev release available for Drupal 10 and Drupal 11
https://www.drupal.org/project/boost/releases/8.x-1.x-dev
Comment #18
joseph.olstadComment #19
avpadernoThat is not a stable release.
Furthermore, the purpose of this queue was not to track a project progress to Drupal 10; for that, the project issue queue is used.
Comment #20
joseph.olstadOk sure, just wanted to make everyone aware that there has been significant work done on the boost project and that there is a dev release available that is for current drupal.
I hope to see a tagged release soon. Perhaps an alpha or beta could be tagged which might bring more attention back to the boost project and lead to further development.
Comment #21
avpadernoThe development version has been created six years ago; an alpha release could have been created at least three years ago.
Porting code to Drupal 10 is not that simple, but it would be possible to do that task and create alpha releases along the process.
Comment #22
joseph.olstad@avpaderno, agreed, I'm a big fan of tags and releases!