Hi!
I know there have been a number of posts on disabling caching and all that.
But my situation has a unique wrinkle. I'm using PagesOnDemand extension to dynamically generate a page, whose content is entirely dependent upon a template (using SUBST, see below):
Template:SomeTemplate content:
"This is a template which changes rather frequently."
Wiki page X content (code): {{subst:SomeTemplate}}
Wiki page X content (as seen by user):
"This is a template which changes rather frequently."
What I would like to happen is for users to see the latest version of page X, especially when Template:SomeTemplate changes.
Let's assume this series of actions.
1) I visit page X (let's call this version 1).
2) I change Template:SomeTemplate
3) I visit page X again (let's call this version 2).
What I'm expecting is that version 2 of page X will reflect the changes made in step 2 above. However, in my initial attempt, what happens in step 3 is that I see version 1 instead of version 2.
I get to see version 2 only when I do one of two things:
1) I hit the browser's REFRESH button.
2) I add a "&action=purge" to the URL of page X.
My question then is: what seems to be causing this? Is this a server-side caching issue (e.g. Squid or whatever)? Is this a client-side (browser) caching issue?
I tried inserting code that is supposed to disable caching, to no avail:
global $wgOut;
$wgOut->enableClientCache(false);
Can someone give me any clues or hints?
Many thanks!
Flip
Send instant messages to your online friends http://uk.messenger.yahoo.com
Yes the locallink extension is working. The webserver \\webserver01 that
I am working on is local and part of my domain. However you have got me
thinking that this may after all be a permission thing. I will get back
to you.
Charlie
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Kilian
Evang
Sent: 08 January 2008 21:31
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Links to files
Oh. In that case, do you access your test HTML file through a web
server? Because if it is local, that's why Firefox doesn't block the
local link. In that case, the LocalLinks Firefox extension is probably
not working.
Am Dienstag, den 08.01.2008, 20:59 +0000 schrieb Charlie Markwick:
> Kilian
>
> Sorry I should have been more accurate. The HTML sources is where I
> copied the link from in the first case, that is the HTML source for
> the Wiki page the link is correct it just doesn't work!!
>
>
> Charlie
>
>
> -----Original Message-----
> From: mediawiki-l-bounces(a)lists.wikimedia.org
> [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Kilian
> Evang
> Sent: 08 January 2008 20:41
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] Links to files
>
> Charlie ~
>
> Am Dienstag, den 08.01.2008, 12:58 +0000 schrieb Charlie Markwick:
> > I'm not sure what I would be looking for. As mentioned before the
> > links are identical, in fact I copied the link bit form the source
> > of the wiki page to create the simple html file I tried.
>
> HTML in the wiki source is parsed and modified by MediaWiki, and local
> links don't survive that as MediaWiki doesn't understand them. Open
> the wiki page in Firefox, press Ctrl+U and look for the link in the
> HTML source to see what I mean.
>
> ~ Kilian
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
So, if someone uploads large resolution picture do ALL wikis break? or is it
only some of them?
I am trying to regroup and find a solution/cause for error.
2008/1/8, Grietinus Koops <grietinus(a)gmail.com>:
>Thanks Itay! This worked!
>But same as you I'm curious about the logic behind it. As there is a limit
>of 20M for some reason. 2500 x 1600 pixels generates far less than
>20MegaBytes I would say. And then it's only in case of thumbnail view...
>
>I'm open for suggestions :)
Kilian
Sorry I should have been more accurate. The HTML sources is where I
copied the link from in the first case, that is the HTML source for the
Wiki page the link is correct it just doesn't work!!
Charlie
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Kilian
Evang
Sent: 08 January 2008 20:41
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Links to files
Charlie ~
Am Dienstag, den 08.01.2008, 12:58 +0000 schrieb Charlie Markwick:
> I'm not sure what I would be looking for. As mentioned before the
> links are identical, in fact I copied the link bit form the source of
> the wiki page to create the simple html file I tried.
HTML in the wiki source is parsed and modified by MediaWiki, and local
links don't survive that as MediaWiki doesn't understand them. Open the
wiki page in Firefox, press Ctrl+U and look for the link in the HTML
source to see what I mean.
~ Kilian
Kilian
I'm not sure what I would be looking for. As mentioned before the links
are identical, in fact I copied the link bit form the source of the wiki
page to create the simple html file I tried.
Charlie
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Kilian
Evang
Sent: 08 January 2008 12:37
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Links to files
Hi Charlie,
did you check the HTML that MediaWiki actually spits out?
Regards
Kilian
How can I prevent the creation of pages in the User: namespace that are
not for actual wiki users? For example, anybody can create an article
called "User:nonexistent" when there is no user named "nonexistent".
DanB
Hi folks, does anyone know of an extension (or hack) that will somehow highlight an interwiki link that points to an article that has been recently edited? or something that returns the number of days since an article has been edited?
I have a table of interwiki links in an article and i would like to show in a column how long its been since the article has been edited (and maybe show a little highting or animation on links to recently edited articles). If I don't get a response, I will code this from scratch.
Thanks!
- Rich (revansx)
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like to have an option beside the "edit" link of a section of a
page that says "history". When I would click that "history" link, I
would get the history not for the whole page but only for that section.
Maybe there is such an extension? Or a place where I can make this
suggestion?
- --
Regards,
Thomas Anderson
"Quidquid latine dictum sit, altum sonatur"
OpenPGP fingerprint: ED7E 1E98 225A 3FCC 458C B3D7 D625 20E6 F316 BD21
OpenPGP public key: http://todu.dyndns.org/pubkey.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHg6qn1iUg5vMWvSERAvw6AJ9GAcvbruSH2y8GipLjdzYTJCNmdQCfaAyg
iyyPh0rQfn7zbnW3/2QYzf8=
=/Oy0
-----END PGP SIGNATURE-----
Thanks Itay! This worked!
But same as you I'm curious about the logic behind it. As there is a limit
of 20M for some reason. 2500 x 1600 pixels generates far less than
20MegaBytes I would say. And then it's only in case of thumbnail view...
I'm open for suggestions :)
Regards,
Grietinus
2008/1/8, Itay Ophir <itay(a)worldwideworkshop.org>:
>
> Thanks for everyone's help,
> here is the error msg I get from two different wikis we have when trying
> to
> browse the file gallery:
>
> wiki 1:
> Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
> allocate 11424 bytes) in
> /home/myglcap2/public_html/usa/wv/ccmswiki/includes/media/Bitmap.php on
> line
> 168
>
> wiki 2:
> Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
> allocate 11264 bytes) in
> /home/myglcap2/public_html/usa/wv/hsta-manwiki/includes/media/Bitmap.php
> on
> line 168
>
> This might be caused by the imagesize as Grietinus wrote yesterday (Issue
> 10) I am not sure.
>
> The wikis is setup on a shared server.
>
> The solution I found for it is:
> 1. Chaning Memory limit from 20M to 40-50M on the following line of
> localsetting:
> # ini_set( 'memory_limit', '20M' );
> 2. Going to the file gallery (that works now) and clicking on the
> thumbnails
> 3. then lowering the memory back to 20M
>
> Any clues of how to prevent this?
>
> Thanks,
> Itay
>
>
>
>
>
> -----Original Message-----
> From: mediawiki-l-bounces(a)lists.wikimedia.org
> [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of
> mediawiki-l-request(a)lists.wikimedia.org
> Sent: Monday, January 07, 2008 7:00 AM
> To: mediawiki-l(a)lists.wikimedia.org
> Subject: MediaWiki-l Digest, Vol 52, Issue 10
>
> Send MediaWiki-l mailing list submissions to
> mediawiki-l(a)lists.wikimedia.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> or, via email, send a message with subject or body 'help' to
> mediawiki-l-request(a)lists.wikimedia.org
>
> You can reach the person managing the list at
> mediawiki-l-owner(a)lists.wikimedia.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MediaWiki-l digest..."
>
>
> Today's Topics:
>
> 1. Re: Is there a way to limit the size of images uploaded
> (Grietinus Koops)
> 2. Mediawiki skin problem (links) (Alain van Acker)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 6 Jan 2008 21:47:23 +0100
> From: "Grietinus Koops" <grietinus(a)gmail.com>
> Subject: Re: [Mediawiki-l] Is there a way to limit the size of images
> uploaded
> To: "MediaWiki announcements and site admin list"
> <mediawiki-l(a)lists.wikimedia.org>
> Message-ID:
> <5490d0010801061247p4563abcdx2a87d9cb1c286aa3(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I also encountered this problem.
> However it does not seem to be related with the bytesize but more with the
> imagesize. Whenever an image exceeds the size of approximately 1600 x 1600
> pixels, the "Fatal Out of Memory" errors occur.
> It is, as Norbert says, only when Thumbnails are involved...
>
> Kind Regards,
>
> Grietinus
>
> 2008/1/5, Norbert Hoeller <nhoeller(a)sinet.ca>:
> >
> > I have run into problems as well with JPGs exceeding 1MB in size.
> Symptoms
> > include upload confirmation pages that are blank, blank pages displayed
> > when previewing/saving Wiki pages with thumbnails of the images, or
> 'Fatal
> > Out of Memory' errors. I have no problems displaying the full-sized
> > image.
> >
> > My MediaWiki installation is on a shared hosting server, which has
> limits
> > on the amount of available memory I can use. My suspicion is that the
> GD
> > code used to create the thumbnails is exceeding available memory -
> before
> > it can create the thumbnail, it first uncompresses the JPG. I have been
> > trying to install ImageMagick on the sharing hosting server, but have
> not
> > figured out all the changes required to the Make files so that it will
> > install cleanly. Installing just the ImageMagick binaries was not
> > successful. There are other, JPG-specific thumbnail conversion routines
> > provided with Linux that appear to be less memory-hungry, but I suspect
> > that would require changes to the MediaWiki code.
> > Norbert
> >
> >
> > > Message from "Emufarmers Sangly" on Fri, 4 Jan 2008 18:09:02 -0500
> >
> > > This will work, but you might want to find out what's causing the
> errors
> > in
> > > the first place and tackle the original problem. What are the
> warnings
> > and
> > > errors you're getting? What image renderer are you using?
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l(a)lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 07 Jan 2008 12:43:21 +0100
> From: Alain van Acker <a.v.a(a)home.nl>
> Subject: [Mediawiki-l] Mediawiki skin problem (links)
> To: mediawiki-l(a)lists.wikimedia.org
> Message-ID: <47821059.5040506(a)home.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi all,
>
> I am trying to alter the monobook skin and I am running into a weird
> problem (version 1.5.5).
>
> Some links are still "clickable" while others behave as simple text, but
> are displayed in blue.
> When I have a look at the source of the webpage, the links are displayed
> exactly the same.
> The page in question is at
> http://gemologyproject.com/wiki/index.php?title=Habit&useskin=test .
>
> The first "form" link is not clickable (first sentence in the Basic
> section), while the 2nd "form" link (in the Related Topics section)
> works as expected/hoped.
>
> Another strange thing is that I can not highlight the text in the
> "Basic" section. I'm sure the two problems are related.
>
> Does anyone have an idea what causes this?
>
> Thanks,
>
> Alain
>
>
>
>
> ------------------------------
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
> End of MediaWiki-l Digest, Vol 52, Issue 10
> *******************************************
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
Thanks Matěj I will try this but it isn't ideal as some of the documents would not be able to fall into the security requirements for the extension to run. It would be interesting to see if it makes a difference though.
Charlie
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Grabovský Matěj
Sent: 08 January 2008 12:53
To: mediawiki-l(a)lists.wikimedia.org
Subject: Re: [Mediawiki-l] Links to files
Try extension addHTML <http://www.mediawiki.org/wiki/Extension:AddHTML>. With this you can add arbitary HTML code to your wiki page.
--Matěj Grabovský