[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Git][arabeyes-general/wiki][master] 2 commits: Performance
- To: git at arabeyes dot org
- Subject: [Git][arabeyes-general/wiki][master] 2 commits: Performance
- From: Youssef Chahibi <git at arabeyes dot org>
- Date: Fri, 10 Feb 2017 12:26:02 -0500
Youssef Chahibi pushed to branch master at arabeyes-general / wiki
Commits:
eab66203 by Youssef Chahibi at 2017-02-10T12:23:16-05:00
Performance
- - - - -
d9f9479b by Youssef Chahibi at 2017-02-10T12:24:57-05:00
Larger font size, tighter upper margin for personal bar, brighter green for links, using Amiri for headings
- - - - -
3 changed files:
- WikiSettings.php
- skins/Arabeyes/components/arabeyes.less
- skins/Arabeyes/components/personalMenu.less
Changes:
=====================================
WikiSettings.php
=====================================
--- a/WikiSettings.php
+++ b/WikiSettings.php
@@ -31,6 +31,7 @@ $wgArticlePath = "/$1";
$wgCapitalLinks = true;
# Path to the GNU diff3 utility. Used for conflict resolution.
+$wgDiff = "/usr/bin/diff";
$wgDiff3 = "/usr/bin/diff3";
## If you use ImageMagick (or any other shell command) on a
@@ -84,12 +85,31 @@ $wgRightsPage = "FreeBSD Documentation License"; # Set to the title of a wiki pa
$wgCacheDirectory = "$IP/cache";
## Shared memory settings
-$wgMainCacheType = CACHE_NONE;
+$wgMainCacheType = CACHE_ACCEL;
+$wgSessionCacheType = CACHE_DB;
+$wgMessageCacheType = CACHE_ACCEL;
+$wgUseLocalMessageCache = true;
+$wgParserCacheType = CACHE_DB;
$wgMemCachedServers = [];
+$wgUseGzip = true;
+$wgEnableSidebarCache = true;
-# Caches
-#$wgEnableParserCache = false;
-#$wgCachePages = false;
+# NO DB HITS!
+$wgDisableCounters = true;
+$wgMiserMode = true;
+
+# Text cache
+$wgCompressRevisions = true; // use with care (see talk page)
+$wgRevisionCacheExpiry = 3*24*3600;
+$wgParserCacheExpireTime = 14*24*3600;
+
+# File caching
+$wgUseFileCache = true;
+
+$wgShowArchiveThumbnails = false;
+
+# Job queue
+$wgJobRunRate=0;
/**
* User administration
@@ -208,6 +228,23 @@ $wgReplaceTextUser = "WikiBot";
# Cite
wfLoadExtension( 'Cite' );
+# Parser functions
+wfLoadExtension( 'ParserFunctions' );
+
+# Echo
+require_once "$IP/extensions/Echo/Echo.php";
+
+# Syntax highlighting
+#wfLoadExtension( 'SyntaxHighlight_GeSHi' );
+
+# Scribunto
+#require_once "$IP/extensions/Scribunto/Scribunto.php";
+#$wgScribuntoDefaultEngine = 'luastandalone';
+#$wgScribuntoUseGeSHi = true;
+#$wgScribuntoUseCodeEditor = true;
+
+
+#
/**
* Transate extension
*/
@@ -216,7 +253,7 @@ wfLoadExtension( 'Babel' );
wfLoadExtension( 'cldr' );
-wfLoadExtension( 'CleanChanges' );
+#wfLoadExtension( 'CleanChanges' );
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;
@@ -229,7 +266,7 @@ $wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['user']['translate-import'] = true;
-$wgGroupPermissions['sysop']['pagetranslation'] = true;
+$wgGroupPermissions['user']['pagetranslation'] = true;
$wgGroupPermissions['sysop']['translate-manage'] = true;
$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Message documentation'; # No linguistic content. Used for documenting messages
=====================================
skins/Arabeyes/components/arabeyes.less
=====================================
--- a/skins/Arabeyes/components/arabeyes.less
+++ b/skins/Arabeyes/components/arabeyes.less
@@ -31,13 +31,13 @@ div#mw-head {
}
div#mw-panel div.portal h3 {
- font-size: 13px;
+ font-size: .9em;
font-weight: 400;
- line-height: 15px;
+ line-height: 1em;
display: block;
background: url(/skins/Arabeyes/images/userbg.gif?188ec) repeat-x;
- border-top: 1px solid #88b157;
- border-bottom: 1px solid #88b157;
+ border-top: 1px solid #A5D07A;
+ border-bottom: 1px solid #A5D07A;
padding: 0.25em 0 0.25em 1em !important;
}
@@ -51,8 +51,8 @@ div#mw-panel div.portal {
margin: 0;
padding: 0;
width: 180px;
- border-right: 1px solid #88b157;
- border-bottom: 1px solid #88b157;
+ border-right: 1px solid #A5D07A;
+ border-bottom: 1px solid #A5D07A;
}
#mw-panel {
@@ -72,15 +72,15 @@ div#mw-panel div.portal {
/* Links */
a {
- color: #006400;
+ color: #7ca926;
}
a:visited {
- color: olivegreen;
+ color: #881280;
}
.mw-body a.external {
- color: seagreen;
+ color: #7ca926;
}
#p-personal a {
@@ -88,7 +88,7 @@ a:visited {
}
#p-personal a:visited {
- color: olivegreen;
+ color: #fff;
}
.wikiEditor-ui-toolbar .group-insert {
=====================================
skins/Arabeyes/components/personalMenu.less
=====================================
--- a/skins/Arabeyes/components/personalMenu.less
+++ b/skins/Arabeyes/components/personalMenu.less
@@ -22,7 +22,7 @@
/* @noflip */
float: left;
margin-left: 0.75em;
- margin-top: 0.5em;
+ margin-top: 0.2em;
font-size: @menu-personal-font-size;
white-space: nowrap;
}
View it on GitLab: https://git.arabeyes.org/arabeyes-general/wiki/compare/42582b0fa2da6a27cb7b33aaa26ba4b6e30e9be4...d9f9479bea91af89a3928e1f0d07a921851dda9d