<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Cache_del_mediawiki</id>
	<title>Cache del mediawiki - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Cache_del_mediawiki"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Cache_del_mediawiki&amp;action=history"/>
	<updated>2026-08-30T09:28:51Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Cache_del_mediawiki&amp;diff=2721&amp;oldid=prev</id>
		<title>Joan a 09:57, 29 abr 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Cache_del_mediawiki&amp;diff=2721&amp;oldid=prev"/>
		<updated>2009-04-29T09:57:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;La cache del mediawiki m'ha donat males passades.&lt;br /&gt;
&lt;br /&gt;
Com deshabilitar-la, ja sigui per sempre, o de forma instantània, està explicat a la FAQ: http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_completely_disable_caching.3F&lt;br /&gt;
&lt;br /&gt;
==How do I completely disable caching?==&lt;br /&gt;
&lt;br /&gt;
Add in your LocalSettings.php file the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$wgEnableParserCache = false;&lt;br /&gt;
$wgCachePages = false;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nota: la cache m'ha donat molts problemes quan alterno entre http://wiki.empresalibre.org i http://localhost/wiki. Aquesta és la solució que he trobat.&lt;br /&gt;
&lt;br /&gt;
==How do I purge cached pages?==&lt;br /&gt;
&lt;br /&gt;
*You can use ?action=purge on individual pages to update their cache dates.&lt;br /&gt;
*There is a global $wgCacheEpoch variable which can be set in LocalSettings.php to invalidate all prior cache entries (see DefaultSettings.php)&lt;br /&gt;
*If you want to purge all pages in the parser cache, truncate objectcache table from the wiki database. You may use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TRUNCATE TABLE objectcache;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A shell script such as this may be used&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /bin/bash&lt;br /&gt;
# mwpurgecache - invalidate mediawiki cache&lt;br /&gt;
&lt;br /&gt;
set -e&lt;br /&gt;
&lt;br /&gt;
PROG=$(basename $0)&lt;br /&gt;
VER=0.1&lt;br /&gt;
&lt;br /&gt;
function version() {&lt;br /&gt;
 echo &amp;quot;$PROG $VER - invalidate mediawiki cache&lt;br /&gt;
Copyright (c) 2005 Claudio Jolowicz &amp;lt;claudio@jolowicz.com&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copying and distribution of this file, with or without modification,&lt;br /&gt;
are permitted in any medium without royalty provided the copyright&lt;br /&gt;
notice and this notice are preserved. This programs comes with&lt;br /&gt;
ABSOLUTELY NO WARRANTEE.&lt;br /&gt;
&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function usage() {&lt;br /&gt;
 version&lt;br /&gt;
 echo &amp;quot;Syntax: $PROG [options] [--] [pages]&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
 -H, --host          host name           (default: localhost)&lt;br /&gt;
 -w, --wiki WIKI     server path to wiki (default: /wiki/)&lt;br /&gt;
 -u, --user USER     username for HTTP authentication&lt;br /&gt;
 -p, --passwd PASS   password for HTTP authentication&lt;br /&gt;
 -d, --dryrun        show commands without executing them&lt;br /&gt;
 -q, --quiet         quiet (no output)&lt;br /&gt;
 -v, --verbose       be verbose (print server response)&lt;br /&gt;
 -h, --help          display this message&lt;br /&gt;
 -V, --version       display version information&lt;br /&gt;
&lt;br /&gt;
Options and arguments must be separated by whitespace.  WIKI must&lt;br /&gt;
match wgArticlePath, such that \$wgArticlePath = \&amp;quot;WIKI/\$1\&amp;quot;. WIKI&lt;br /&gt;
must not contain regex special characters.&lt;br /&gt;
&lt;br /&gt;
This script requests all wiki pages listed on the command line by&lt;br /&gt;
HTTP, prefixed by the wiki path, appending \`?action=purge' to the&lt;br /&gt;
URL. If no pages are specified, it retrieves the list of all pages&lt;br /&gt;
from Special:Allpages.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
 \$ $PROG Main_page Help:Contents&lt;br /&gt;
 \$ $PROG -H wiki.my.org -w /mediawiki -u joe -p banana&lt;br /&gt;
 \$ $PROG -H wiki.my.org --dryrun | wc -l&lt;br /&gt;
&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
## The '-e#' is a noop option to avoid `Unsupported scheme' errors.&lt;br /&gt;
user='-e#'&lt;br /&gt;
passwd='-e#'&lt;br /&gt;
run=&lt;br /&gt;
verbose=-nv&lt;br /&gt;
quiet='-e#'&lt;br /&gt;
&lt;br /&gt;
opt_host=http://localhost&lt;br /&gt;
opt_wiki=/wiki/&lt;br /&gt;
opt_user=&lt;br /&gt;
opt_passwd=&lt;br /&gt;
opt_dryrun=false&lt;br /&gt;
opt_quiet=false&lt;br /&gt;
opt_verbose=false&lt;br /&gt;
while [ &amp;quot;$1&amp;quot; ]&lt;br /&gt;
do&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
   -H|--host) opt_host=&amp;quot;$2&amp;quot;; shift;;&lt;br /&gt;
   -w|--wiki) opt_wiki=&amp;quot;$2&amp;quot;; shift;;&lt;br /&gt;
   -u|--user) opt_user=&amp;quot;$2&amp;quot;; shift;;&lt;br /&gt;
   -p|--passwd) opt_passwd=&amp;quot;$2&amp;quot;; shift;;&lt;br /&gt;
   -d|--dryrun) opt_dryrun=true;;&lt;br /&gt;
   -q|--quiet) opt_quiet=true;;&lt;br /&gt;
   -v|--verbose) opt_verbose=true;;&lt;br /&gt;
   -h|--help) usage; exit 0;;&lt;br /&gt;
   -V|--version) version; exit 0;;&lt;br /&gt;
   --) shift; break;;&lt;br /&gt;
   -*) usage 2&amp;gt;&amp;amp;1; exit 1;;&lt;br /&gt;
   *) break;;&lt;br /&gt;
 esac&lt;br /&gt;
 shift&lt;br /&gt;
done&lt;br /&gt;
opt_host=${opt_host%/}&lt;br /&gt;
opt_wiki=/${opt_wiki#/}&lt;br /&gt;
opt_wiki=${opt_wiki%/}/&lt;br /&gt;
[ x&amp;quot;$opt_user&amp;quot; = x&amp;quot;&amp;quot; ] || user=&amp;quot;--http-user=${opt_user}&amp;quot;&lt;br /&gt;
[ x&amp;quot;$opt_passwd&amp;quot; = x&amp;quot;&amp;quot; ] || passwd=&amp;quot;--http-passwd=${opt_passwd}&amp;quot;&lt;br /&gt;
$opt_dryrun &amp;amp;&amp;amp; run=echo&lt;br /&gt;
$opt_verbose &amp;amp;&amp;amp; verbose=&amp;quot;--server-response&amp;quot;&lt;br /&gt;
$opt_quiet &amp;amp;&amp;amp; quiet=&amp;quot;-q&amp;quot;&lt;br /&gt;
(&lt;br /&gt;
 if [ $# -eq 0 ]; then&lt;br /&gt;
   wget -qO- &amp;quot;$user&amp;quot; &amp;quot;$passwd&amp;quot; &amp;quot;${opt_host}${opt_wiki}Special:Allpages&amp;quot; |&lt;br /&gt;
   sed -re '/start content/,/end content/p' -e 's/href=&amp;quot;([^&amp;quot;]+)&amp;quot;/\nGREPME:\1\n/g' |&lt;br /&gt;
   sed -nre 's/^GREPME:(.*)$/\1/p' |&lt;br /&gt;
   grep &amp;quot;^${opt_wiki}&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
   for page; do echo &amp;quot;${opt_wiki}${page}&amp;quot;; done&lt;br /&gt;
 fi&lt;br /&gt;
) |&lt;br /&gt;
while read page&lt;br /&gt;
do&lt;br /&gt;
 $run wget -O/dev/null &amp;quot;$user&amp;quot; &amp;quot;$passwd&amp;quot; &amp;quot;$quiet&amp;quot; &amp;quot;$verbose&amp;quot; &amp;quot;${opt_host}${page}?action=purge&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, abril 2009&lt;br /&gt;
[[Categoria: Mediawiki]]&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>