Skip to content

Commit fe5d6cf

Browse files
committed
Again, with default & lightweight
1 parent f277f90 commit fe5d6cf

File tree

4 files changed

+12
-54
lines changed

4 files changed

+12
-54
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
# - mysql:5.7 # MariaDB seems to generally be the faster choice...
2929
# - mysql:8.0 # Broken! and thus untested... (Probably because the install fails? :)
3030
settings:
31-
# - default
31+
- default
3232
- lightweight
33-
- lightweight-wbNoSharedCache
34-
- lightweight-mwCacheDirectory
3533
# - mwCacheDirectory
3634
# - mwNoJobs
3735
# - wbNoChangesTable

settings/lightweight-mwCacheDirectory.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

settings/lightweight-wbNoSharedCache.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

settings/lightweight.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ echo "\$wgWBRepoSettings['useChangesTable'] = false;" >> LocalSettings.php
1818
# Use a seperate DB connection for ID allocation to reduce contention
1919
# https://doc.wikimedia.org/Wikibase/master/php/md_docs_topics_options.html#repo_idGeneratorSeparateDbConnection
2020
echo "\$wgWBRepoSettings['idGeneratorSeparateDbConnection'] = true;" >> LocalSettings.php
21+
22+
# Do not use a shared Wikibase cache, this is mainly useful for multi site setups? or reads?
23+
# https://doc.wikimedia.org/Wikibase/master/php/md_docs_topics_options.html#common_sharedCacheType
24+
echo "\$wgWBRepoSettings['sharedCacheType'] = CACHE_NONE;" >> LocalSettings.php
25+
26+
## Set $wgCacheDirectory to a writable directory on the web server
27+
## to make your wiki go slightly faster. The directory should not
28+
## be publicly accessible from the web.
29+
echo "\$wgCacheDirectory = \"\$IP/cache\";" >> LocalSettings.php
30+
mkdir cache
31+
chmod -R 775 cache

0 commit comments

Comments
 (0)