Cronjob Empty Trash

Auto delete trashed pages sustainably after a predifined period of time set in module settings. This cronjob will run once per day.

Auto delete trashed pages sustainably after a predifined period of time set in module settings.
This cronjob will run once per day.

This cronjob (hooks on LazyCron) is executed by a call to module: ProcessPageView.
By default this module runs only if current user has page-delete permission.
Can be triggered globally too.
Each run of the cronjob is logged in assets/logs/ messages.txt

Settings


  • Deletion Deadline
    Select a period of time pages will remain untouched in the trash.

  • Global trigger
    Check this to trigger this cronjob by every user (guest)

Require


LazyCron.module

License


GNU-GPLv3

Author


kixe (Christoph Thelen)

More modules by kixe

  • Color

    Field that stores colors. Many options for Input (HTML5 Inputfield Color, Textfield with changing background, various jQuery/JS ColorPickers, custom jQuery/JS/CSS) and Output (RGB, RGBA, HSL, HSLA…
  • Cronjob Database Backup

    Periodic automatic backup of the database. Set interval in settings.
  • Fieldtype Select External Option

    Fieldtype which generates the options for a Select Inputfield from any table of any (accessible) database. Define the source table, columns (to pull value & label) and the preferred…
  • 404 Logger

    Logs all requests resulting in http error 404
  • Setup Page Name

    Overwrites function setupPageName() in class Pages (core), which is typically called in case of autogeneration of pages. Provides more options for 'Name Format Children' in parent template…
  • Page Reference Context Data

    Field that stores one or more references to ProcessWire pages with additional data in field context, editable via page edit modal of the referenced page.
  • Cronjob Empty Trash

    Auto delete trashed pages sustainably after a predifined period of time set in module settings. This cronjob will run once per day.
  • Textformatter Page Images

    Allows you to insert images in a text area by referencing them with tags in the following format [[fieldName,Number,class]]. All Parameters are optional. Configurable base class and wrapper.
  • Button Fieldtype

    Field that stores 3 values for label, target and class (CSS). Output markup configurable in field settings.

All modules by kixe

Install and use modules at your own risk. Always have a site and database backup before installing new modules.