Auto-Purge feature is not working

Created on 26 February 2025, 13 days ago

Problem/Motivation

Auto-Purge feature is not working even after the setted time

Steps to reproduce

Install Trash module
Navigate to /admin/config/content/trash
Enable Auto-Purge option
Set time for 1 hour
Check Trash (/admin/content/trash) after 1 hour

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India shaik_karimulla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @shaik_karimulla
  • 🇷🇴Romania amateescu

    Is cron configured correctly for that site? Auto purging works by running a queue on cron.

  • 🇮🇳India shaik_karimulla

    Even when I run the trash cron job manually, I'm getting the success message. But the content is still present in Trash.

  • 🇷🇴Romania amateescu

    I just tried it locally by setting the auto-purge duration to 1 second, deleted a node which went to trash, ran drush cron and the node was purged from trash.

    What do you mean by "run the trash cron job manually"? You can run Drupal's cron either from the UI (admin/config/system/cron) or using Drush (drush cron).

  • 🇮🇳India shaik_karimulla

    I tried to run cron through UI, It didn't worked (might be our site issue). But when I run cron through drush command, It's working and the content got purged from trash.

    Thanks for ur quick response. I'll close this issue.

  • 🇷🇴Romania amateescu

    Nice, I'm glad you figured it out.

Production build 0.71.5 2024