Plugins/Modules > Cleanup of unused images DataLife Engine
Cleanup of unused images DataLife EngineDate: 4 January 2011 | Posted by: doti04 |
![]() The module spends clearing of pictures which aren't used on a site. Algorithm of the module idle time, we take the complete list of files in a folder uploads/posts/* we fill table PREFIX_clean, and then we check on presence of images in table PREFIX_images if there is no that it is deleted. Module options in the main file engine/inc/cleandisk.php they it is clear enough commented. Installation: 1. To unpack archive in a root 2. To start install.php Module functions: To scan - scans a folder uploads/posts/* and in a package mode writes down in a DB of a way and names of pictures To clear - filters pictures and deletes not necessary (in an automatic mode) See full article |