Surge

Beschrijving

Surge genereert en serveert statische HTML-bestanden van je WordPress-site. Dat levert snellere requests en laadtijden op, en een kortere “time to first byte” (TTFB).

Surge vereist geen configuratie en heeft geen instellingen. Het werkt “out of the box” op elk goed geconfigureerd hosting-platform. Cachebestanden worden op schijf opgeslagen en automatisch opgeruimd als je site geupdate wordt.

Uit diverse belastings-testen is gebleken dat Surge makkelijk 1000-2500 requests per seconde aan kan met 100 gelijktijdige bezoekers, op een server met één CPU-kern en 1 GB RAM. Dat is ruim 70 keer sneller dan een standaard WordPress-installatie.

Installatie

Via het WordPress-dashboard: Navigeer naar Plugins – Nieuwe plugin. Typ “surge” in de zoekbalk en sluit af met Enter. Vind de Surge-plugin in de zoekresultaten, klik op Installeren en vervolgens op Activeren.

Handmatig: download het .zip-bestand van de Surge-plugin van WordPress.org. Navigeer in het admin-scherm van je site naar Plugins – Nieuwe plugin – Plugin uploaden. Kies het .zip-bestand en klik op Nu installeren. Activeer de plugin als het uploaden klaar is.

Handmatig via FTP: download het .zip-bestand van de Surge-plugin van WordPress.org, pak het archiefbestand uit, en controleer of de folder “surge” heet. Gebruik je FTP/SFTP programma om de folder te uploaden naar wp-content/plugins. Activeer de plugin vervolgens op het Plugins-scherm.

Met WP-CLI: wp plugin install surge –activate

FAQ

Waar is het instellingen-scherm van de plugin?

Dat is er niet.

Hoe wis ik de cache?

Toggle de plugin activering of voer wp surge flush uit met WP-CLI.

Werkt mijn cache?

Ga naar het scherm Sitediagnose onder Gereedschap in je WordPress-dashboard. Veel voorkomende caching-fouten zoals installatiefouten verschijnen daar. Of open je site in een privé-venster om de gecachede versie te zien. Je kunt ook kijken of er een “X-Cache” header is in het antwoord van de server.

Waarom krijg ik “cache misses”?

Hieronder een aantal veel voorkomende redenen:

  • Je bent ingelogd in je WordPress-site
  • Er is een unieke cookie gezet in je browser
  • Een unieke parameter zorgt ook voor een “cache miss”, met uitzondering van veel gebruikte marketing-parameters, zoals utm_campaign, etc.
  • Requests anders dan GET en HEAD worden niet gecached

Kan ik pagina X uitsluiten van caching?

Natuurlijk. Als je een “Cache-Control: no-cache” header (of max-age=0) toevoegt wordt de request automatisch uitgesloten van caching. Let op, de meeste WordPress-plugins doen dit al waar dit nodig is.

fpassthru() is uitgeschakeld om veiligheidsredenen

Het lijkt er op dat je hosting-provider de functie fpassthru() uitgeschakeld heeft. Dit is waarschijnlijk een vergissing. Neem alsjeblieft contact met ze op en vraag ze de functie aan te zetten.

Hoe kan in Surge steunen?

Als je Surge leuk vindt, overweeg dan ons een ster te geven op Github en een recensie te plaatsen op WordPress.org.

Beoordelingen

28 februari 2024 1 reactie
I wanted to extend my deepest appreciation for your invaluable contribution. Your Surge Cache plugin has revolutionized the performance of my website. Amidst the challenges of compatibility issues between FlyingPress and WP Rocket with Sucuri WAF, your plugin emerged as the beacon of hope. Previously, grappling with other caching plugins led to severe CPU spikes, pushing my site to the brink of breakdowns. While perfmatters provided some relief, I still needed a lightweight page cache plugin to navigate peak traffic periods seamlessly. Enter your Surge Cache plugin. Its seamless integration with my site has not only bolstered its speed but also its overall performance. I am now confident that my website remains steadfast and responsive even during the busiest of times. Thank you, from the depths of my heart, for crafting such an exceptional tool. Your unwavering dedication to enhancing website functionality is truly commendable. With warm regards, Greg
22 september 2023 1 reactie
Hello, for this plugin to work must the fpassthru function be activated or not? There is a difference?
6 februari 2024 1 reactie
Over the years, I've looked at all the top caching plugins, and never found one that I liked. They were either too complex, too finicky, or tried to do too many things. Surge just works, and it works great. Update: I ran some basic performance testing of the same sample content with and without Surge activated.Surge increased my Requests per second by a factor of 21x and reduced my time per request by a factor of 25x. Beyond that, Konstantin has been amazing as far as support goes for a free plugin. Besides addressing issues and requests, he's gone above-and-beyond at helping work through issues, to the point of looking at where we are using Surge and making additional configuration recommendations. If it were possible to give 6 stars, I would!
24 januari 2023
This plugin works! Install, activate, and check WP_CACHE value and boom - your site is fast!One nice feature that is happening under the hood is caching of specific REST API requests. That makes, for example, dynamic parts of the site with javascript filtering blazingly fast.
22 september 2022 1 reactie
I almost gave up on finding a WP cache plugin that ONLY did that... cache! Everything is bloated with minify, CDN, image optimize, and a bunch of features I just don't need because we have those taken care of otherwise.
6 april 2022 1 reactie
I'm using it for 1 month on different sites with different themes and plugins, and some big ones over 150-200GB. Works just perfect!
Lees alle 28 beoordelingen

Bijdragers & ontwikkelaars

“Surge” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Surge” is vertaald in 6 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Surge” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.1.0

  • Improved Multisite compatibility
  • Fixed occasional stat() warnings in cleanup routines
  • Fixed expiration by path being too broad
  • Added a filter for flush actions
  • Feature: added a simple events system for s-maxage and stale-while-revalidate support

1.0.5

  • Oplossing woocommerce_product_title compatibiliteit
  • Honoreer DONOTCACHEPAGE constante
  • Gebruik ingebouwde is_ssl() WordPress functie voor betere compatibiliteit

1.0.4

  • Een WP-CLI commando toevoegen om de pagina cache ongeldig te maken/te legen
  • Oplossing omleiding loop met core redirect_canonical voor ignore_query_vars
  • Oplossing waarschuwingen voor aanvragen met lege headers
  • Oplossing waarschuwingen wanneer cron cleanup een bestand probeert te lezen dat niet meer bestaat
  • Een filter toevoegen om het schrijven naar wp-config.php uit te schakelen

1.0.3

  • Maak cache ongeldig als post_per_page wordt gewijzigd
  • Redirect loop opgelost met onbekende query variabelen veroorzaakt door de redirect_canonical van core
  • Negeer X-Cache en X-Powered-By headers van cache metagegevens
  • Sta meerdere headers toe met dezelfde naam

1.0.2

  • Fix voor PHP-waarschuwingen in de invalidatiecode
  • Bescherming tegen “race conditions” bij het schrijven van flags.json
  • Voeg ondersteuning toe voor meer post statussen in transition_post_status invalidatiecode

1.0.1

  • Voeg ondersteuning toe voor gebruikersconfiguraties
  • Verschillende verbeteringen bij het invalideren
  • Verwijderen van advanced-cache.php als de plugin gedeactiveerd wordt
  • Een opmerking over fpassthru() toegevoegd aan de FAQ
  • Kleine verbeteringen in Sitediagnose-tests

1.0.0

  • Aanvragen naar favicon.ico en robots.txt anonimiseren
  • Verbeterde invalidatie, cache-invalidatie per pad toegevoegd

0.1.0

  • Eerste release