-----Original Message-----
From: wikitech-l-bounces(a)wikimedia.org [mailto:wikitech-l-bounces@wikimedia.org] On Behalf
Of Brion Vibber
Sent: Friday, November 18, 2005 2:26 PM
To: Wikimedia developers
Subject: Re: [Wikitech-l] Parser caching
Sechan, Gabe wrote:
How so? I'm honestly curious here. My
permissions are stored in
page_restrictions. Its just a simple group read/can't read thing
(only groups in the field can read a page. Unless the field is blank,
in which case anyone can). I put the restrictions checking in
Revision::getText() and Title::getText().
Be very careful; this will prevent all internal functions from loading text properly, and
could result in permanent data corruption on internal maintenance processes
(compression/uncompression for instance, backup data dumps, perhaps future upgrades).
More generally about the parser cache; if you add per-user changes that affect rendering
you need to take this into account in the parser cache option hash. See User.php.
-- brion vibber (brion @
pobox.com)
Good catch, I didn't think of backup. I'll add in an exception to the checking so
that internal functions bypass it. Since these would be done via an admin or the command
line, excepting those 2 cases ought to work (admins need full vision anyway).
Gabe