Admin:WikiMaintenance: Difference between revisions

From Hacky Racers Wiki
No edit summary
Line 21: Line 21:
=== Wiki ===
=== Wiki ===
Updates should automatically process over time, however you may want to:
Updates should automatically process over time, however you may want to:
*[https://hackyracers.co.uk/wiki/api.php?action=purge&generator=allpages Purge cache of all pages on wiki (force updates)].
*[Special:ApiSandbox#action=purge&format=json&generator=allpages&formatversion=2&gaplimit=max Purge cache of all pages on wiki (force updates)].
*Purge a specific page [[Special:Purge]].
*Purge a specific page [[Special:Purge]].


[[Category:Admin]]
[[Category:Admin]]

Revision as of 16:50, 29 October 2024

Disk space management

Wiki

Limits

  • Upload limit is set to 2MB to conserve disk space. Modify $wgMaxUploadSize = 1024*1024*2; in LocalSettings.php
  • Display notices on the uploads page using MediaWiki:Uploadtext

Unused files

  • Check for unused files: Special:UnusedFiles
  • Delete unneeded files by clicking each file, then "delete all" on file history.
  • Run maintenance script to actually remove "deleted" files from disk. DeleteArchivedFiles
    • Open Terminal on cPanel and run: php public_html/wiki/maintenance/run.php deleteArchivedFiles --delete

Compress images

Wordpress

  • Uninstall unneeded plugins and themes
  • Run image optimiser plugin

Updates

Wiki

Updates should automatically process over time, however you may want to:

  • [Special:ApiSandbox#action=purge&format=json&generator=allpages&formatversion=2&gaplimit=max Purge cache of all pages on wiki (force updates)].
  • Purge a specific page Special:Purge.