Clear the disk cache
Posted: Thu Nov 01, 2007 6:37 am
Firstoff: SwiftMailer Rocks - it is bees-knees
I just implemented
Swift_CacheFactory::setClassName("Swift_Cache_Disk");
Swift_Cache_Disk::setSavePath($mytempfolder);
And its all going just swell.
But i see that my temp folder is filling up with files, and never emptying
so i guess i need to do it manually
But how? (sorry if its said already. i did search.)
i see there is a clear() command and i'm hoping i can stick it in above my ultimate line of code
$swift->clear(); // clear disk cache when finished
$swift->disconnect();
Thanks
I just implemented
Swift_CacheFactory::setClassName("Swift_Cache_Disk");
Swift_Cache_Disk::setSavePath($mytempfolder);
And its all going just swell.
But i see that my temp folder is filling up with files, and never emptying
so i guess i need to do it manually
But how? (sorry if its said already. i did search.)
i see there is a clear() command and i'm hoping i can stick it in above my ultimate line of code
$swift->clear(); // clear disk cache when finished
$swift->disconnect();
Thanks