News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Moved topic message not automatically deleting

Started by Julius_2000, August 07, 2023, 03:31:04 PM

Previous topic - Next topic

Julius_2000

I've noticed that notifications of moved topics, although specified in the option before moving a topic, do not get automatically deleted from the topic index after their expiration date.

To test it I deliberately set it to 1 day a couple of times recently but nothing happens.

Kindred

Is the cleanup task set to run in your admin tasks?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Julius_2000

Hi @Kindred,

Yes,

"Remove MOVED: redirection topics" is enabled and the next due date is tomorrow. But from experience nothing will happen.

Kindred

what happens if you select the "run now" checkbox and run it?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Julius_2000

The "moved topic" redirect does not get removed.

Steve

I'm sure you know this but just in case, hard refresh in your browser?
My pet rock is not feeling well. I think it's stoned.

Julius_2000


Steve

What about clearing forum cache and then hard refreshing? Beyond that, I'll have to have the coders take over.
My pet rock is not feeling well. I think it's stoned.

shawnb61

This is dependent on what you set the retention to when you moved the topic.  The redirect topics are not removed immediately - the retention period must pass.

If you set the retention to 'never', or too far out, you must delete that redirect topic manually.

I don't think the redirect expiration date is visible online...  To sneak a peek, look at the topic in phpmyadmin.

This might help:
SELECT m.subject, t.id_topic, t.redirect_expires, from_unixtime(t.redirect_expires), t.id_redirect_topic
FROM smf_topics as t
INNER JOIN smf_messages m ON t.id_first_msg = m.id_msg
WHERE LEFT(m.subject, 6) = 'MOVED:'
ORDER BY t.redirect_expires DESC, t.id_topic DESC
LIMIT 20;

Note you might have a bunch in Recycled Topics.  Note also that a redirect_expires of 0 means 'never' was selected.
A question worth asking is born in experience & driven by necessity. - Fripp

Steve

@shawnb61 - Are you using retention date and redirect expiration date interchangeably? Is there a difference?

The OP did say he selected 1 day when he moved a topic and the redirect post did not remove itself after a day had passed.

He also said running the 'Remove MOVED: redirection topics' by clicking 'Run Now' but still the redirection topics remain.
My pet rock is not feeling well. I think it's stoned.

Julius_2000

Quote from: shawnb61 on August 09, 2023, 05:24:33 PMThis is dependent on what you set the retention to when you moved the topic.  The redirect topics are not removed immediately - the retention period must pass.

If you set the retention to 'never', or too far out, you must delete that redirect topic manually.

I don't think the redirect expiration date is visible online...  To sneak a peek, look at the topic in phpmyadmin.

This might help:
SELECT m.subject, t.id_topic, t.redirect_expires, from_unixtime(t.redirect_expires), t.id_redirect_topic
FROM smf_topics as t
INNER JOIN smf_messages m ON t.id_first_msg = m.id_msg
WHERE LEFT(m.subject, 6) = 'MOVED:'
ORDER BY t.redirect_expires DESC, t.id_topic DESC
LIMIT 20;

Note you might have a bunch in Recycled Topics.  Note also that a redirect_expires of 0 means 'never' was selected.
I have to contact the owner then as I can't access that myself. Like Steve said, I used the option menu to select the expiration date for the automatic removal, and also the manual removal via the Maintenance section wouldn't work. We do have lots of recycled topics, though, but I can't see an expiration setting or automatic removal option for those under Maintenance (which would also not be desired as we want to keep them as long as we like).

Quote from: Steve on August 09, 2023, 03:58:29 PMWhat about clearing forum cache and then hard refreshing? Beyond that, I'll have to have the coders take over.
Haven't tried this yet and need to check it out on our test forum.

shawnb61

Quote from: Steve on August 10, 2023, 05:11:46 AM@shawnb61 - Are you using retention date and redirect expiration date interchangeably? Is there a difference?

The expiration datetime on the "MOVED:" topic is calculated based on the retention period you choose when you move the topic.   (now + retention period = expiration datetime)

Note that "one day" = 24 hours.  If you moved it with a retention of "one day" at 11pm Tuesday, its expiration datetime will be 11pm Wednesday.
A question worth asking is born in experience & driven by necessity. - Fripp

Julius_2000

Quote from: shawnb61 on August 10, 2023, 10:56:15 AM@shawnb61
Note that "one day" = 24 hours.  If you moved it with a retention of "one day" at 11pm Tuesday, its expiration datetime will be 11pm Wednesday.
Yes, this is how I always understood it. Which is why I waited even a little longer. But when I choose 1 day and 2, 3 days pass without the redirect being deleted, I know that the automatic deletion is not working.

Advertisement: