Hi! I'm in a process of building a couch based cron image compression utility.
First task is to read image directory contents and add some info about images to db which will help me to fetch and mark compressed images for compression utility. I'm using db_persist tag to add a new image record to db.
After each image db record creation I output php memory_get_usage and can see that it rises with each record created.
I wonder if there is any unset variables left or something as I really don't want the script to fail when it will scan a folder with several hundreds of images.
I'm not very strong at php at the moment so after looking at source code of the persist tag - i've found nothing suspicious. Only return $html at the end bothers me. Why db_pesist tag needs to return html or is it not the case? Hope KK or someone more experienced than me can lead me to solution of the problem. Thank you!
First task is to read image directory contents and add some info about images to db which will help me to fetch and mark compressed images for compression utility. I'm using db_persist tag to add a new image record to db.
After each image db record creation I output php memory_get_usage and can see that it rises with each record created.
I wonder if there is any unset variables left or something as I really don't want the script to fail when it will scan a folder with several hundreds of images.
I'm not very strong at php at the moment so after looking at source code of the persist tag - i've found nothing suspicious. Only return $html at the end bothers me. Why db_pesist tag needs to return html or is it not the case? Hope KK or someone more experienced than me can lead me to solution of the problem. Thank you!