Hi,
I'm still trying to figure out what's the best solution for mobile
subdomains combined with file caching.
I'm planning to copy the MediaWiki installation files for the mobile
version to a separate folder (m) and link the subdomain to that folder
while using the same database like the desktop version. Or is there a
better way?
Can it cause any problems if one database shares two installations?
My setup:
OpenBSD 5.7
nginx 1.7.10
MediaWiki 1.25.1
PHP 5.4.38 (fpm-fcgi)
MariaDB 10.0.16-MariaDB-log
LocalSettings.php:
# Memcached
$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_MEMCACHED; # optional
$wgMessageCacheType = CACHE_MEMCACHED; # optional
$wgMemCachedServers = array( "127.0.0.1:11211" );
$wgSessionsInMemcached = true; # optional
$wgUseGzip = true;
$wgEnableSidebarCache = true;
# File cache
$wgUseFileCache = true; /* default: false */
$wgFileCacheDirectory = "$IP/cache";
$wgShowIPinHeader = false;
# Text cache
$wgCompressRevisions = true;
$wgRevisionCacheExpiry = 3*24*3600;
$wgParserCacheExpireTime = 14*24*3600;
# NO DB HITS!
$wgDisableCounters = true;
$wgMiserMode = true;
# MySQL performance tuning
$wgAntiLockFlags = ALF_NO_LINK_LOCK | ALF_NO_BLOCK_LOCK;
# Image performance tuning
$wgShowArchiveThumbnails = false;
# cron performance tuning
$wgJobRunRate = 0;
Thanks and cheers!
Till