Re: [Lurker-users] prevent languages being generated

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Adrian Bridgett
Date:  
To: Wesley W. Terpstra
CC: lurker-users
Subject: Re: [Lurker-users] prevent languages being generated
On Thu, Mar 18, 2010 at 16:21:09 -0700 (-0700), Wesley W. Terpstra wrote:
> On Thu, Mar 18, 2010 at 9:08 AM, Adrian Bridgett <> wrote:

[snip]
> Am I understanding correctly that you want lurker to refuse requests for
> pages rendered with the UI elements in other languages?


Many thanks for such a fast and helpful reply :-)

Not quite. I should have explained more clearly. Currently (lacking
any better information) I backup everything lurker touches:

7916    /var/www/lurker/attach
84      /var/www/lurker/imgs
4       /var/www/lurker/index.html
256     /var/www/lurker/list
0       /var/www/lurker/lurker.docroot
4       /var/www/lurker/mbox
85148   /var/www/lurker/message (pruned somewhat)
125132  /var/www/lurker/mindex
4       /var/www/lurker/search
68      /var/www/lurker/splash
66024   /var/www/lurker/thread (pruned somewhat)
0       /var/www/lurker/ui
4       /var/www/lurker/zap
63164   /var/lib/lurker/


> If you have files appearing in other languages in your cache, it's because
> someone is actually loading pages in that language (or google found them).
> That said, you might want to reconsider disabling the feature as people are
> actually using it.


Both message and thread directories contain *.ja.html, *.de.html etc -
I would like to stop these from being created. I can't figure out
how to disable it though (ah, your instructions for main.cpp -
excellent - that's what I was after). FYI lurker.conf says:

archive[en] = Hampshire LUG Mailing List Archive
 group = lists
     heading = Mailing Lists


     list = hampshire
     title       = Hampshire LUG
     language    = en
     address     = 
     link        = http://mailman.lug.org.uk/mailman/listinfo/hampshire
     description = Hampshire Linux User Group Mailing List.
                   This is the new public mailing list which replaced
                   a closed mailing list in November 2006.


> Don't backup anything in the lurker >CACHE< folder. It will all be
> regenerated on demand from the database. Also, if you have a lot of files in
> your cache folder, you might want to confirm you run lurker-prune from a
> cron job.


Looking at the lurker-prune manpage it sees to say the whole of
/var/www/lurker is the cache? Is that correct? To be honest if I can
drop the message/mindex/thread folders from teh backups that'd make a
huge difference (just backing it up to home).

lurker-prune is being called - all files are less than a day old.
Maybe it's just google scanning it all.

> That said, if you still really want to forbid lurker from generating pages
> with a non-en.html extension, you will need to edit the C++. In
> render/main.cpp go to line 130 and add something along the lines of:
>
> if (out.language != "en") error("Bad language", out.language, "Only English
> is allowed.");


Fabulous, thanks!

Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Lurker-users mailing list

https://lists.sourceforge.net/lists/listinfo/lurker-users