Keşfet

Properly remove orphaned threads

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
3,211
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
I have hundreds of threads, from a conversion, that have no posts with them. They don't even have the original post data associated with them. These are causing errors with the enhanced search, among other things.

So, I want to delete all those threads. What I'm thinking about doing is creating a script that will grab all threads with 0 replies, check to see if it has any associated posts and, if not, use $thread->delete();.

My question is, would this be the appropriate way to...

Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol
 

Konu görüntüleyen kullanıcılar

Benzer konular

Geri
Üst Alt