Instalação local do MediaWiki lenta apesar de permitir o armazenamento em cache do Squid, do analisador, do arquivo e da barra lateral

0

Eu tenho uma instalação local do MediaWiki em uma unidade flash usando o XAMPP. Eu ativei todas as formas possíveis de armazenamento em cache, tanto quanto eu sei, exceto para o Varnish, já que ele não está disponível no Windows. Além disso, o modo avarento e muitas outras configurações que aparentemente aumentam a velocidade são ativadas. No entanto, ainda leva ~ 40 segundos para carregar a página principal (ou qualquer outra página) depois de modificar o LocalSettings.php. É possível que eu esteja usando mal o Squid, pois não consegui encontrar nada que diga se eu poderia ou não usá-lo localmente (embora eu esteja inclinado a não, dado que não há diferença de velocidade notável entre habilitá-lo e desabilitá-lo). Eu habilitei o php_apc. Existe alguma maneira de acelerar?

Este é o meu arquivo LocalSettings.php (comentários removidos para condensar):

<?php
if ( !defined( 'MEDIAWIKI' ) ) {
    exit;
}
$wgCachePages=true;
$wgSitename = "MyWiki";
$wgScriptPath = "/wiki";
$wgServer = "http://127.0.0.1";
$wgResourceBasePath = $wgScriptPath;
$wgLogo = "$wgResourceBasePath/images/WikiLogo_135px.png";
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@localhost";
$wgPasswordSender = "apache@localhost";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
$wgDBtype = "mysql";
$wgDBserver = "127.0.0.1";
$wgDBname = "wikidb";
$wgDBuser = "wiki";
$wgDBpassword = "[redacted]";
$wgDBprefix = "";
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
$wgDBmysql5 = false;
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "C:\Program Files\ImageMagick-7.0.7-Q16\convert.exe";
$wgUseInstantCommons = true;
$wgPingback = false;
$wgShellLocale = "C.UTF-8";
#$wgCacheDirectory = "$IP/cache";
$wgLanguageCode = "en";
$wgSecretKey = "[redacted]";
$wgAuthenticationTokenVersion = "1";
$wgUpgradeKey = "22275bc0e8047d19";
$wgRightsPage = "";
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
$wgDiff3 = "";
$wgDefaultSkin = "vector";
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
$wgFavicon = "$wgResourceBasePath/favicon.ico";
$wgJobRunRate = 0;
$wgUseFileCache = true;
$wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
$wgEnableSidebarCache = true;
$wgCacheDirectory = "{$wgUploadDirectory}/cache2";
$wgLocalisationCacheConf = array(
    'class' => 'LocalisationCache',
    'store' => 'files',
    'storeClass' => false,
    'manualRecache' => false,
);
$wgUsePrivateIPs = true;
$wgHitcounterUpdateFreq=20000;
$wgEnableParserCache=true;
$wgShowIPinHeader = false;
$wgUseGzip = true;
$wgMiserMode = true;
$wgCompressRevisions = true;
$wgRevisionCacheExpiry = 3*24*3600;
$wgParserCacheExpireTime = 14*24*3600;
$wgGroupPermissions['autopatrolled']['autopatrol'] = true;
$wgSessionsInObjectCache=true;
$wgSessionCacheType=CACHE_ACCEL;
$wgInvalidateCacheOnLocalSettingsChange=false;
$wgDisableQueryPages=true;
$wgUseSquid = true;
$wgSquidServers = array('127.0.0.1'); # improper?
$wgSquidServersNoPurge = array('127.0.0.1');
    
por snorepion 20.12.2017 / 22:08

0 respostas