Why my site is so Slowwww ?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You could modify that plugin that already deletes entry, and modify the SQL statement to check if entry.comments is < 1 and entry.extended != ''?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

I just check in the Agregator to see how its work ... I dont think I can do it myself :wink:

I dont thibk its a good idea to try it ....


Who made the Agregator module ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I did it. :)

After my holidays, I can have a look at implementing your wish. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Another commit I'm almost ready to make.

I modified it to delete only entries that, besides the earlier restrictions, also have no comments and no extended body. Is that what is desired?
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

That seems to be it. :)) Many thanks for your help, judebert!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Since I've got you here...

I only added the comparison in expireEntries. If you delete the whole feed, everything will still go with it. Should I keep entries with comments/extendeds when their feed is deleted, or should I delete them?
Judebert
---
Website | Wishlist | PayPal
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

I want to delete the entries have no comments and no extended in .. if my visitor take time to comment my entries I dont want to remove these entries.

Same for extended .. if I make the extended entries its cause I want to get this entries for future comments.

Its possible to put different time for different categories ?

Like if I want to delete YouTube entries after 20 days ( too much entries there :wink: )

and News categories after 60 days

Thx guys
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

No, I don't think there's (currently) any way to set the feeds separately.

There are two places where entries get deleted: one is when an existing feed's entries are expired, and the other is when a feed is deleted. I've already handled the expiration, and I'm dealing with feed deletion.

If you're deleting a feed, all the entries go with it, whether they've got comments or not. I expect this is the proper behavior, but I want to verify it first.
Judebert
---
Website | Wishlist | PayPal
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

Hi All, Hi Garvin ... hope you have great vacation.

If you have time to check the Delete entries stuff, if you need tester tell me... :wink:

I cant find how myself ..

Thanks
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

Hi All ... something new here ? I need something to clean the database soon lol I have over 40, 000 entries but I dont want to delete where I have comments or extended.

Pleeaassee ! :wink:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Thanks for reminding me! I'm currently a bit out of time, so I can't tell yet when I have the chance.


...( But a donation would speed up the process *big-grin* ;-) )

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I tell ya, it's amazing what a $12 CD can do. Normally that paltry sum buys less than an hour of my development time, but around here it gets weeks of dedicated support and programming. I must be crazy.

Anyway, do you need this plugin committed (I'm only slightly reluctant, since nobody has told me it's either good or bad at this point)? Or are you looking for a new plugin (perhaps based on this one) that cleans up old entries?
Judebert
---
Website | Wishlist | PayPal
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

LOL I hear you .. Now what I want is to speed up my website, if I can make it quicker I will leave it in this actual form, if I cant I have to find another solution.

I make website for hobby but Trust me if I use serendipity for Website and I can make money with I will support you guys.

For now you can pm me and tell me how many $$$ is required to rent your services.

thx again
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Oh, don't misunderstand: we're helping you out, and no donation is required. Certainly appreciated, but not required.

If you just need the RSS feed modifications committed, it'll take me about ten minutes after I get home tonight. Unfortunately, it only does the cleanup on expired entries, and it doesn't try to keep entries from deleted feeds. So if you delete a feed (instead of just waiting for its entries to expire), it'll take all that feed's entries, commented or not. And all categories will have the same expiration date.

If that's good for you, I'll commit it tonight.
Judebert
---
Website | Wishlist | PayPal
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

I understand, Yes what I want is clean in all categories all entries after like 30 days or more where I have no comments or no extended entries.

If its not enough important for my visitor or an admin to extended the entries I want to remove it.

Its possible to have a box where we can put the id of each catogories where we want to delete post ?

I have to try to speed up my site... now its very long to display and I dont want to see visitor stop to come cause its long to display.

If you have something can help me to improve the site you are welcome. My host is on windows 2003 server.

Also its possible to have another option when we edit a post ?

We have Publish and Draft ... can you add a Delete fonction ?

Many thx for your help.
Post Reply