Skip to content
perrym5 edited this page Apr 21, 2011 · 8 revisions

Description

This function deletes all of the cached RSS articles from the database that were published after a certain date.

Prototype

int Article::cleanup( [string date] )

Parameters

date optional: Date to delete after. By default this is set to 1 month prior to now.

Return Value

Returns the number of articles that were deleted from the database

Examples

Code:

<?php
var_dump( Article::cleanup() );
?>

Outputs:

int(0)

Code:

<?php
var_dump( Article::cleanup( date( "Y-m-d H:i:s" ) ) );
?>

Outputs:

int(10)
Clone this wiki locally