Servebolt Optimizer

Beskrivning

The Servebolt Optimizer plugin adds functionality to implement Servebolt’s best practices for WordPress. This includes database optimizations, errorlog review, automatic cache purging, automatic image optimization and resizing, performance recommendations, and support for down stream HTML caching.

Specifically, Servebolt Optimizer does two things for your site:

  1. It connects your WordPress hosted or WooCommerce hosted Servebolt site to your Servebolt Control Panel.
  2. Its features implement Servebolt’s best practices for performance. These best practizes include database optimizations, error log review, automatic cache purging, automatic image optimization/resizing, performance recommendations and support for down stream HTML caching.

This project is maintained on Github.

Funktioner

  • Configures HTML caching to speed up your site (Servebolt clients only)
  • Integrates with Accelerated Domains (Servebolt clients only)
  • Rewrite headers to allow down stream full page caching (Servebolt clients only)
  • View Apache/PHP error log (Servebolt clients only)
  • Databasoptimering – Konvertera tabeller till InnoDB
  • Databasoptimering – Lägg till prestandaförbättrande index
  • Automatiskt rensning av Cloudflare cache
  • Rekommendationer för ytterligare prestandaförbättringar.
  • Multi-site support
  • WP CLI-stöd
  • Cloudflare Image Resize-support (beta feature)
  • WP Rocket compatability (Servebolt clients only)

Read more about the plugin and all its features in our Help Center.

Accelerated Domains

The integration with our revolutionairy add-on performance and security enhancing service Accelerated Domains is made possible by Servebolt Optimizer. Installing the Servebolt Optimizer will provide the required HTTP headers to make best us of Accelerated Domains.

Automatisk rensning av Cloudflare cache

Servebolt Optimizer supports the most complete solution for Cloudflare cache purging. The HTML Cache is automatically purged when any post type or term has been updated. You can also purge directly from the admin bar. This Cloudflare integration supports both the use of API key and API token authentication when communicating with the Cloudflare API.

HTML Caching

This plugin rewrites HTTP headers of HTML to allow for HTML Caching, and for the browser to cache HTML. HTML Caching may introduce all sorts of problems for end users, so installation and testing should be performed by a professional.

Konfiguration

This plugin can be controlled via the WordPress Dashboard or WP CLI. Additonalaly there are various filters and PHP constants at your disposal.

Filter and constant reference

The plugin has various filters and PHP constants that allows third-party developers to alter the behaviour of the plugin. Please read the article Filters and PHP constants in our help center to learn more.

Installation

Navigate to your WordPress Dashboard > Plugins > Add New and then search for Servebolt and follow instructions.

Alternatively, you can also install Servebolt Optimizer via sFTP or WP CLI:

With sFTP:

  1. Ladda ner detta tillägg och packa upp det
  2. Ladda upp mappen servebolt-optimizer till katalogen /wp-content/plugins/
  3. Aktivera tillägget via menyn ”Tillägg” i WordPress.
  4. Navigera till Servebolt > Performance Optimizer och kör optimeringar om nödvändigt

With WP-CLI:

  1. Log in to your site with SSH
  2. cd to your sites root wordpress folder
  3. Run wp plugin install servebolt-optimizer --activate
  4. Run optimizations wp servebolt db optimize

Run wp help servebolt to see all the available commands that can configure the plugin.

Vanliga frågor

Will Servebolt Optimizer plugin make my site faster?

The Servebolt Optimizer plugin is primarily designed to make best use of our WordPress hosting or WooCommerce hosting. Its database optimizing feature does indeed help in making your database faster and thus your site.

Can I install this plugin if I’m not a Servebolt client?

Yes, you can. The database optimizations are beneficial for everyone as well as the Cloudflare cache purge options. You would miss out on the fastest WordPress hosting out there, but you can use it on a non-Servebolt site.

What if I discover a bug?

If you’re a Servebolt client, please reach out to our Support Team and we’ll be happy to help you out there. Alternatively, you can create a support forum request here.

Recensioner

6 april 2020
CloudFlare cache purge & cache purge is now in the plugin so is The database optimization with this plugin is a unique feature, that is a must-have for all WordPress websites that need speed. No need for wp rocket with is Database optimization – Convert tables to InnoDB Database optimization – Add performance improving indexes Automatic Cloudflare cache purge Recommendations on additional performance improvements Rewrite headers to allow down stream full page caching (Servebolt clients only) View Apache/PHP error log (Servebolt clients only) Multisite support WP CLI support
29 juni 2018
The database optimization with this plugin is a unique feature, that is a must-have for all WordPress websites that needs speed. I really like the security features as well. And the Servebolt specific options are great as a Servebolt customer.
Läs alla 2 betyg

Bidragsgivare och utvecklare

”Servebolt Optimizer” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”Servebolt Optimizer” har översatts till 2 språk. Tack till översättarna för deras bidrag.

Översätt ”Servebolt Optimizer” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

3.1.1

  • Added index to column ”parent_id” in the queue table to improve query performance.

3.1

  • Accelerated Domains Image Resizing – This version introduces a new feature: Accelerated Domains Image Resizing. This feature will resize, optimize metadata, and cache your images on the fly. Improving load time and enhancing the user experience.
  • PHP version constraint – We have changed the required PHP version from 7 to 7.3. This means that whenever the plugin is activated in an environment running less than PHP version 7.3, the plugin will show an admin notice in WP Admin indicating the need to upgrade to be able to used the plugin.
  • Yoast SEO Premium – automatic cache purge for redirects. Whenever you add or remove a redirect in Yoast SEO Premium, the plugin will now purge the cache for the given URLs. This is useful since otherwise one would potentially need to manually purge these URLs after adding or removing a redirect.
  • Added CDN cache control header – We have now added a new header (CDN-Cache-Control) that allows for more fine grained control over the cache feature in the CDN-nodes.
  • Improved WP Rocket compatibility – We’ve improved the compatibility with WP Rocket’s cache feature so that it will not interfere with the cache feature of Servebolt Optimizer.

3.0.2

  • Fixed bug in compatibility code for older versions of WP Rocket
  • Fixed bug that caused post cache not to be purged when scheduling posts
  • Updated composer and NPM packages (affecting development environment only)

3.0.1

  • Corrected typo in string “Accelerated domains” to use uppercase in first character of each word.
  • Fixed issue in cache headers – the feature to exclude posts from cache was broken due to wrong order in conditions in the cache header logic. This is now fixed.
  • Removed priority-attribute from plugin static asset actions – due to cases of incompatibility between themes and other plugins we removed the priority-attribute from the actions that enqueued the plugins static assets. This means that the priority-attribute falls back to the default value of 10 which should be less likely to cause issue.
  • Resolved issue with single file composer packages not being included in autoloader – certain packages were not included in the Composer autoloader due to an issue in Mozart (which was needed to resolve conflicts between composer packages used in WordPress plugins). The packages originated as dependencies of the Servebolt PHP SDK, and was solved by specifically including them in the plugins composer-file. The affected packages contained polyfills for the PHP functions “http_build_url” (from module pecl_http) and “getallheaders” which means that this was only an issue in environment where these functions were not available in PHP.
  • Removed SASS-parser since there was no real need in the project – due to an issue with the npm package ”node-sass” running on macOS Big Sur the SASS-parser was disabled, at least for now.

3.0.0

Version 3.0.0 is a major rewrite of Servebolt Optimizer and we highly recommend you testing this update on staging before you update in on production.

  • Rewritten codebase – The whole plugin code base is rewritten. This was done since the previous structure did not allow for automated testing (using PHP Unit) nor was it up to par with modern PHP. To achieve this the code base was rewritten to use PSR-4 autoloading as well as making the existing code testable. The code standard was also changed to PSR-1. The new required PHP version is 7.3 or higher.
  • PHP Unit tests – PHP Unit tests have been added as an attempt to prevent errors, speed up the development process, and ensure better overall code quality.
  • Accelerated Domains by Servebolt – The plugin has support for activating Accelerated Domains by Servebolt. The addition of this feature affects the cache purge system which previously only worked with Cloudflare, but now also supports Accelerated Domains and its cache feature. This can be controlled by selecting the cache provider in the cache purge settings.
  • CLI-commands – JSON-support – The CLI-commands now has an optional JSON return format. This can be done by adding “–format=json” to the command call. Note that the Full Page Cache-related commands do not have this support yet, but all other commands has.
  • CLI-commands – Cloudflare CLI commands removed – Since the cache purge feature now works with both Cloudflare and Accelerated Domains then the feature is no longer only specific to Cloudflare. This lead to most of the Cloudflare-related commands being migrated to the “wp servebolt cache settings“-namespace. The only remaining Cloudflare-related CLI command is “wp servebolt cf setup“ which works like before, but now also has JSON return format supported as mentioned earlier.
  • Improved cache purging – The cache purge feature is improved and expanded. See below.
  • Cache purging of old URLs – Whenever a post/term URL is changed then the system will purge the old URL. This is useful since otherwise you would possibly get conflicting URLs and/or duplicated content.
  • WooCommerce compatibility – The cache will now be purged for a WooCommerce product whenever the stock amount/status changes, like during a checkout. This is necessary to keep the stock up to date for the visitors/customers, especially on high traffic sites. Cache purging will now also purge all URLs of a variable WooCommerce product.
  • Improved exception handling – Whenever there is an error during a cache purge request the system now has an improved handling of exceptions being thrown.
  • WP Rocket compatibility – WP Rocket’s cache feature was previously in conflict with Servebolts own cache feature. This should now be solved since WP Rocket’s cache feature is disabled as long as the Full Page Cache-feature is active in Servebolt Optimizer. This allow users to still use the other features of WP Rocket without conflicts.
  • Improved queue handling when purging cache – In the cache purge feature there is an option to use a queue that will send the list URLs (that should be cached) in delayed chunks instead of sending them all immediately. These requests would typically originate from a post update, or whenever someone does a WooCommerce checkout and the product stock changes. This update improves the handling where the amount of URLs previously would have exceeded the allowed amount according to Cloudflare.
  • Third party cache purge functions – Third party developers can now call publicly available cache purge functions. This allows for purging by post, term, URL or purge all.
  • Single site plugin activation constraint – The plugin can now only be activated site-wide when used in a multisite network.
  • Cloudflare Image Resizing removed from the GUI – The beta-feature “Cloudflare Image Resizing” has now been removed due to it not being tested properly. It is still available through the CLI, but not in the GUI.
  • Removed network cache purge action – The feature to purge all cache for all sites in a multisite-network was removed due to lack of time to integrate this with Accelerated Domains and the improved queue system.
  • Removed the cache purge queue GUI – The queue GUI (list) in the cache purge settings was removed due to lack of time to integrate this with Accelerated Domains and the improved queue system.
  • Cache purge links in post/term list – It is now possible to trigger cache purge actions from the row actions of posts and terms in WP Admin.
  • Added purge actions for terms in the WordPress Admin bar – When viewing a term – either in WP Admin or front-end – you can now purge the cache via the Admin bar.
  • Added custom HTTP User Agent string to API requests – The outgoing requests from the plugin now uses a custom user agent string that will allow for easier identification of requests originating from the plugin.
  • Log viewer GUI update – The log viewer GUI has gotten overhauled with better styling.
  • Fixed bug – The form containing the cache purge configuration had autocompletion on. This lead to problems with information wrongfully being submitted. This is now fixed.
  • Fixed bug – Host determination function failed when in CLI context. The function “isHostedAtServebolt“ returned false regardless of hosting environment when running in CLI-context. This is fixed in this version.
  • Fixed bug – Cache headers absent in archives. When using Full page caching and setting the post type to “all” then the archives got not cache headers. This version fixes that.

2.1.5

  • Hotfix in Cloudflare cache purge feature

2.1.4

  • Added basic Cloudflare APO-support
  • Changed order of URLs when purging cache for a post in Cloudflare
  • Fixed bug in Full Page Cache-logic for archives
  • Fixed bug in Cloudflare Image Resize

2.1.3

  • Fixed styling issue in Gutenberg-editor sidebar menu

2.1.2

  • Fixed styling issue in Gutenberg-editor sidebar menu

2.1.2

  • Fixed JavaScript error related to the Gutenberg-editor

2.1.1

  • Fixed issue with script inclusion causing errors
  • Added missing CLI argument for FPC deactivation

2.1

  • Added extended cache invalidation for Cloudflare cache – archives and other related URLs will also be purged.
  • Added a SweetAlert-fallback so that native JavaScript alerts, prompts, confirmations will be used instead. This is due to SweetAlert being prone to conflicts with themes and other plugins.
  • Made the Cloudflare Image Resize-feature available (through WP CLI and PHP constant).
  • Completed the WP CLI with more configuration commands.
  • Added more meta-data to the cache purge queue when using the Cloudflare cache purge feature + added a cleaner that will remove old elements if not automatically purged.
  • Added full overview over available PHP constants and filters.
  • Various bug fixes
  • Various GUI improvements
  • Bug fix for WooCommerce-implementations (corrected cache headers for WooCommerce-pages).

2.0.9

  • Hotfix related to the admin bar

2.0.8

  • Improved GUI – now possible to purge cache (via the admin bar menu) for single pages when viewing / editing
  • Fixed minor CF settings page validation bug

2.0.7

  • Buggfix relaterad till rensning av cache för kommentarer

2.0.6

  • Förbättrad feedback när cache rensas
  • Städning och upprensning av kod
  • Olika buggfixar
  • Lade till automatisk cacherensning vid kommentar inlägg/godkännande

2.0.5

  • Ersatte Guzzle med WP HTTP API för att förhindra konflikt med andra tillägg som använder Guzzle.

2.0.4

  • Buggfix i funktion som kontrollerar om webbplatsen hanteras av Servebolt.

2.0.3

  • Olika buggfixar och förbättringar av kommandon för WP-CLI

2.0.2

  • Olika buggfixar

2.0.1

  • Olika buggfixar

2.0

1.6.4

  • Mindre buggfix

1.6.3

  • Mindre buggfix

1.6.2

  • Mindre buggfix

1.6.1

  • Tog bort säkerhet från adminpanelen

1.6

  • Nyhet: Hantera helsidescache-inställningar med WP CLI (wp servebolt fpc)
  • Förbättring: Stäng av kontroll av sårbara tillägg med define('SERVEBOLT_VULN_ACTIVATE', false);
  • Tog bort: Kontroll av tillägg efter säkerhetshål. Denna funktion kommer släppas i ett separat tillägg.
  • Tog bort: Transient-rensare
  • La till en exit om installation sker med PHP version lägre än 7

1.5.1

  • Buggfix: Kunde inte skapa index på icke-nätverksinstallationer

1.5

  • La till stöd för nätverk/multisite
  • Fixade en bugg i säkerhetskontrollen i wpvulndb
  • La till en fin animering när optimeringen kör
  • Uppdaterade readme.txt

1.4.2

  • Viktig buggfix

1.4.1

  • Viktig buggfix

1.4

  • Github #8 La till rensning av transienter till WP-Cron
  • La till rensning av transienter via WP CLI
  • Ändringar av WP CLI-kommandon
  • Nytt: Har lagt till ett läge där sårbarheter i WordPress och tillägg hämtas från WPVULNDB.COM
  • Nytt: Har lagt till e-postmeddelanden när WP eller tillägg är sårbara

1.3.4

  • lade till på/av switch för Nginx cache
  • Ta bort WP versionsnummer och etiketter
  • Hoppa över sammanfogning av admin-script, vi använder HTTP/2
  • Lade till stöd för WP-CLI
  • problem från Github #8 lade till uninstall.php + fixade buggar #7 #9
  • lade till ändringslogg i Readme.txt