RE: comments plugin...slow?
gabor <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <1084911444.13647.7.camel@dubb> |
On Tue, 2004-05-18 at 16:01 -0400, Blake Winton wrote: > > On Tue, 18 May 2004, gabor wrote: > > > i can understand that textile needs time to load..but why > > > takes it sooooooo long for the comments plugin? on the > > > main page (which i tested) there is nothing that is > > > generated by the comments plugin... > > Ahh but the comments plugin generates a $num_comments > > variable for every entry that gets displayed. In order to > > do this, it has to parse all the comments for that entry. > > So even if you don't use the $num_comments variable, it's > > there and the comments plugin generates it. > > But the comments plugin could be changed to only generate the > data for that variable when requested, like most of the other > plugins do... (It won't help if you use the $num_comments > variable, but it should be faster if you don't, and it's > probably a good thing to do, just in case other people use > it as the basis for new plugins.) > > Hey Gabor, do you know Python? Do you want to learn? The > changes that need to be made are fairly easy, and come with > a lot of samples to guide you. ok, maybe i will do that.... for now i am fighting with a permission problem... i am not a root on the server where i have pyblosxom... and the comment files (same problem with xml-rpc blogging) get created as owner:apache, group:apache... so i basically cannot read them when logged into the server using ssh :)) for now i tried to give the logfiles o+r and o+w, with doing os.chmod(commentfile,0666),but it seems to be not the real solution... how do you solve this? gabor ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click