Share via


Разгоняем Sharepoint до скорости Highload интернет сайта

 ??? ????????, ?????? ?? ?? ????? ???????? ???????? ??? ?????????? ???????? ????? ?? Sharepoint ???????? ??? ??????????????????. ?? ??? ?? ??????? ? ? ???? ????? ????????.

? ???? ?????? ? ??????? ????? ???????? ??????????? ?? ???????????, ????????? ??????? ????? ??????????? ???????? ?????? ???????.

· ??-?????? ????? ???????? ????????? ??????????? ??????? Sharepoint ????? ??? ?????????

· ???????? ???????? ??????????? ???????? ? ???????????? ??????????? ? ????????????? ???? ???-?????? ? ????????? ??????????

· ?????????? BLOB cache ? ?????? ?????????? IIS

· ?????????? ?????? ??????????? ??????? ? ?????? ???????, ?? ???? ????????? core.js ? core.css ???, ??? ??? ?? ?????, ??????? ???????? ???????? ?????????? ? ?.?. ???????? ???? ??????????? ?????? ? GAC ? ??????????? ??????????? ??. ???????????? <SharePointWebControls:ScriptLink runat="server"/> ? <SharePoint:CssLink ID="CssLink1" runat="server" /> ??? ??????????? css ? js ?????? ???????? ?? html.

 ?????? ??????? ??-???????.

??????????? ???????????? ???????? (Output caching)

??????????? ?? ?????? ????????? ????? sharepoint. ??????????? ?????? ???????? ????? ???? ???????? ??? ?????? ??????? ? ???????? ?????. ?? ?????? ????? ?????? ????????? ??????????? ??? ????????? ? ??????????????????? ?????????????. ? ??????????? ???????? ???????? 4 ???????, ??????? ???????? ??? ??????????? ?????????. ???????? ?????????? ??????? ??????????? ? ????????? ?????? ???????? ????????? ???????:

 

? ?????? ??????????, ??? ??? ??????????, ????? ??? ????????? ??????-???? ????????? ? ?????? ?????? (query string) ???????? ??????? ?? ?? ????, ? ???????????? ? ???????? ?????????? ??????. ????? ????? ??????? ??????? ? ???? Vary by Query String Parameters ?????? “ *

 

??? ??????, ???? ?? ???????? ?????? ???? ???????? ?????????? ? ???????????? ??????????? ??? ???? ??? ????????? ???????? ?????? ????????????? ????? ???????????? Post-Cache Substitution control (https://www.nikhilk.net/PostCacheSubstitution.aspx)

??????????? ?????? (Blob cache)

Blob Cache ???????? ???????? SharePoint ?? ???? ?? ???????. ????? ?????????. ??? ????????? ?????????? ??????????????? web.config.

 

??????????? ???????? ? ???????? (Object cache)

??????????? ?? ?????????. ???????????? ??? ???????? ??????? ? ?????????:

· ????????? ? ????????? ???????

· ???? ? ???????? ???????

· ?????? ???????????? ? Content by Query web part

?? ????????? ??? ???????? ????????? 100MB ? ??? ????? ???????? ????? ???-?????????.

 

?????? IIS

???????? ?????? ??? JS ? CSS ????? ???????? ? ????????? ?????? ?? ???????:

cscript adsutil.vbs set w3svc/filters/compression/gzip/hcfileextensions "htm" "html" "txt" "js" "css"

cscript adsutil.vbs set w3svc/filters/compression/deflate/hcfileextensions "htm" "html" "txt" "js" "css"

iisreset

IHttpModule ? ??????? ???????????

????? ??? ???, ???? ?????? ????? ????? ??????? ?????? ? ???????????? ????????? ???????? ?????? ??? ?? ????? ??? ??? (???????? ??????????), ??? ????? ?????? ??????? ???????? ?????? ?????????? ? ???????. ??? ????? ??????? IHttpModule ? ??????? ? ?????? Init ???????? ????????? ?? ????????????? ?????????? ??? ??????. ?????? ?????? ???? ?????? ??????, ?.?. ?? ??? ???? ???? ???????? ????????? ????????? ???????? ;)

??????????

? ?????????? ?????? ??????????? ????, ??? ? ????????? ? MSDN:

Output Caching and Cache Profiles

Object Caching

Disk-based Caching for Binary Large Objects

Creating and Registering a Custom HTTP Module

Post-Cache Substitution

Comments

  • Anonymous
    April 15, 2009
    После выполнения этой команды пишет "Не удалось найти запрошенный путь Ошибка при попытке получения объекта:w3svc/filters/compression/deflate"

  • Anonymous
    April 15, 2009
    После выполнения этой команды cscript adsutil.vbs set w3svc/filters/compression/deflate/hcfileextensions "htm" "html" "txt" "js" "css" пишет "Не удалось найти запрошенный путь Ошибка при попытке получения объекта:w3svc/filters/compression/deflate"

  • Anonymous
    March 03, 2010
    cscript %SystemDrive%InetPubAdminScriptsadsutil.vbs set w3svc/filters/compression/deflate/hcfileextensions htm html txt js css cscript %SystemDrive%InetPubAdminScriptsadsutil.vbs set w3svc/filters/compression/gzip/hcfileextensions htm html txt js css Так вроде бы корректнее