Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

message_purge()

Description

Remove all messages from message and user_message tables that have expired (regardless of read).
This will be called from a cron job.

Parameters

This function accepts no parameters.

Return

void

Location

include/message_functions.php lines 169 to 173

Definition

 
function message_purge()
    {
    
sql_query("DELETE FROM user_message WHERE message IN (SELECT ref FROM message where expires < NOW())");
    
sql_query("DELETE FROM message where expires < NOW()");
    }

This article was last updated 24th November 2020 17:35 Europe/London time based on the source file dated 4th August 2020 08:55 Europe/London time.