-
Notifications
You must be signed in to change notification settings - Fork 0
Article::cleanup
perrym5 edited this page Apr 21, 2011
·
8 revisions
This function deletes all of the cached RSS articles from the database that were published after a certain date.
int Article::cleanup( [string date] )
date optional: Date to delete after. By default this is set to 1 month prior to now.
Returns the number of articles that were deleted from the database
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)