Surge

Описание

Surge создает и отдает статические файлы HTML для вашего сайта WordPress, запросы обрабатываются быстрее, загрузка происходит быстро а время до первого байта (TTFB) снижается.

Surge не требует конфигурации и не имеет настроек. Работает «из коробки» на любом нормально сконфигурированном сервере. Кешированные файлы сохраняются на диске и автоматически аннулируются при обновлении сайта.

В различных нагрузочных тестах Surge показал, что легко обрабатывает 1000–2500 запросов в секунду при 100 одновременных операциях на небольшом одноядерном сервере всего с 1 ГБ ОЗУ. Это более чем в 70 раз быстрее, чем стандартная установка WordPress.

Установка

Via the WordPress Dashboard: navigate to Plugins — Add New. In the search bar type «surge» and hit Enter. Find the Surge plugin in the search results, hit Install, then Activate.

Manually: download the Surge plugin .zip file from WordPress.org. In your WordPress admin navigate to Plugins — Add New — Upload. Select the .zip file and hit Upload. Activate the plugin after upload is successful.

Manually via FTP: download the Surge plugin .zip file from WordPress.org, extract the archive, make sure the directory is called «surge». Use your FTP/SFTP client to upload the «surge» directory to wp-content/plugins. Then activate the plugin in your WordPress admin from the Plugins section.

Используйте WP-CLI: `wp plugin install surge —activate`

Часто задаваемые вопросы

Где экран настроек плагина?

А его нет.

How do I clear the cache?

Toggle the plugin activation or run wp surge flush using WP-CLI.

Мой кеш работает?

Посетите экран «Здоровье сайта» в разделе «Инструменты» консоли WordPress. Там будут появляться распространенные ошибки кеширования, такие как проблемы с установкой и т. д. В противном случае откройте свой сайт в окне браузера инкогнито, чтобы увидеть кешированную версию. Вы также можете найти заголовок «X-Cache» в ответе сервера.

Почему происходят промахи в кеш?

Ниже названы наиболее общие причины:

  • Вы авторизовались на сайте
  • У вас установлены уникальные куки в браузере
  • Уникальный параметр запроса также может приводить к промаху кеша, кроме общих маркетинговых параметров (utm_campaign и прочих).
  • Иные методы запроса кроме GET и HEAD не кешируются

Как исключить страницу из кеширования?

Конечно. Если вы передадите заголовок «Cache-Control: no-cache» (или max-age = 0), запрос будет автоматически исключен из кеша. Обратите внимание, что большинство плагинов WordPress уже делают это там, где это необходимо.

Функция fpassthru() была отключена по соображениям безопасности

It seems like your hosting provider disabled the fpassthru() function, likely by mistake. This is a requirement for Surge. Please get in touch with them and kindly ask them to enable it.

Как мне поддержать Surge?

Если вам нравится Surge, то оставье нам звезду на GitHub и отзыв на WordPress.org.

Отзывы

28.02.2024 1 ответ
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.09.2023 1 ответ
Hello, for this plugin to work must the fpassthru function be activated or not? There is a difference?
06.02.2024 1 ответ
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.01.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.09.2022 1 ответ
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.
06.04.2022 1 ответ
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!
Посмотреть все 28 отзывов

Участники и разработчики

«Surge» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Surge» переведён на 6 языков. Благодарим переводчиков за их работу.

Перевести «Surge» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

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

  • Fix woocommerce_product_title compatibility
  • Honor DONOTCACHEPAGE constant
  • Use built-in is_ssl() WordPress function for better compatibility

1.0.4

  • Add a WP-CLI command to invalidate/flush page cache
  • Fix redirect loop with Core’s redirect_canonical for ignore_query_vars
  • Fix warnings for requests with empty headers
  • Fix warnings when cron cleanup attempts to read a file that no longer exists
  • Add a filter to disable writing to wp-config.php

1.0.3

  • Invalidate cache when posts_per_page is changed
  • Fix redirect loop with unknown query vars caused by Core’s redirect_canonical
  • Ignore X-Cache and X-Powered-By headers from cache metadata
  • Allow multiple headers with the same name

1.0.2

  • Fix PHP notice in invalidation
  • Protect against race conditions when writing flags.json
  • Add support for more post statuses in transition_post_status invalidation

1.0.1

  • Add support for custom user configuration
  • Various invalidation enhancements and fixes
  • Remove advanced-cache.php when plugin is deactivated
  • Add a note about fpassthru() in FAQ
  • Minor fix in Site Health screen tests

1.0.0

  • Anonymize requests to favicon.ico and robots.txt
  • Improve cache expiration, add cache expiration by path

0.1.0

  • Initial release