Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
wordpress_-_включение_кеширования_через_плагин_wp_super_cache [2024/05/30 15:25] support2wordpress_-_включение_кеширования_через_плагин_wp_super_cache [2024/05/30 18:38] (текущий) support2
Строка 25: Строка 25:
 {{::wp-super-cache-3.png?800|}} {{::wp-super-cache-3.png?800|}}
  
 +4) В настройках указываем "Таймайт кеширования" = 0 сек и нажимаем "Изменить время жизни копий": \\
 +{{::wp-super-cache-4.png?800|}}
 +
 +
 +
 +5) Проверяем через нагрузочное тестирование (утилиту Apache HTTP server benchmarking tool):
 +
 + 
 +
 +Результат без кеширования:
 +<code bash>
 +# ab -c 10 -n 200 http://wp.cms.******.ru/
 +This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
 +Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
 +Licensed to The Apache Software Foundation, http://www.apache.org/
 +Benchmarking wp.cms.*****.ru (be patient)
 +Completed 100 requests
 +Completed 200 requests
 +Finished 200 requests
 +Server Software: nginx/1.14.0
 +Server Hostname: wp.cms.*****.ru
 +Server Port: 80
 +Document Path: /
 +Document Length: 53966 bytes
 +Concurrency Level: 10
 +Time taken for tests: 117.099 seconds
 +Complete requests: 200
 +Failed requests: 0
 +Write errors: 0
 +Total transferred: 10848400 bytes
 +HTML transferred: 10793200 bytes
 +Requests per second: 1.71 [#/sec] (mean)
 +Time per request: 5854.971 [ms] (mean)
 +Time per request: 585.497 [ms] (mean, across all concurrent requests)
 +Transfer rate: 90.47 [Kbytes/sec] received
 +Connection Times (ms)
 +min mean[+/-sd] median max
 +Connect: 17 17 0.1 17 17
 +Processing: 141 5668 8964.2 4962 51239
 +Waiting: 107 5634 8964.2 4928 51205
 +Total: 158 5685 8964.3 4979 51256
 +Percentage of the requests served within a certain time (ms)
 +50% 4979
 +66% 5993
 +75% 6938
 +80% 6988
 +90% 8014
 +95% 9074
 +98% 47248
 +99% 49220
 +100% 51256 (longest request)
 +
 +</code>
 +
 +
 +Результат с кешированием через плагин WP SUPER CACHE:
 +
 +<code bash>
 +
 +# ab -c 10 -n 200 http://wp.cms.*****.ru/
 +This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
 +Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
 +Licensed to The Apache Software Foundation, http://www.apache.org/
 +Benchmarking wp.cms.*****.ru (be patient)
 +Completed 100 requests
 +Completed 200 requests
 +Finished 200 requests
 +Server Software: nginx/1.14.0
 +Server Hostname: wp.cms.*****.ru
 +Server Port: 80
 +Document Path: /
 +Document Length: 54168 bytes
 +Concurrency Level: 10
 +Time taken for tests: 11.062 seconds
 +Complete requests: 200
 +Failed requests: 0
 +Write errors: 0
 +Total transferred: 10887624 bytes
 +HTML transferred: 10833600 bytes
 +Requests per second: 18.08 [#/sec] (mean)
 +Time per request: 553.088 [ms] (mean)
 +Time per request: 55.309 [ms] (mean, across all concurrent requests)
 +Transfer rate: 961.19 [Kbytes/sec] received
 +
 +Connection Times (ms)
 +min mean[+/-sd] median max
 +Connect: 17 17 0.1 17 17
 +Processing: 57 518 472.6 528 1950
 +Waiting: 23 484 472.6 493 1916
 +Total: 74 535 472.6 545 1967
 +Percentage of the requests served within a certain time (ms)
 +50% 545
 +66% 903
 +75% 931
 +80% 948
 +90% 987
 +95% 1124
 +98% 1656
 +99% 1947
 +100% 1967 (longest request)
 +
 +</code>
 +
 +Сравните значения: \\
 +
 +**Requests per second: 1.71 [#/sec] (mean) - без кеширования** \\
 +**Requests per second: 18.08 [#/sec] (mean) - с кешированием.**\\
 +
 +Как видим, сайт теперь может выдерживать значительно большее число посетителей.
 +
 +
 +{{tag>"wordpress" "wp super cache"}}
  
Наверх