clear smarty cache generated from string input
Clear Smarty Cache Generated from string input.
Mass mailing use above call to generate final html for sending email. and pattern of cache file like e.g (Note : file name pattern get changed if mail open_tracking is disabled)
File size can vary 100-500 KB per file
This file get generated for each individual contact present in mailing. if total number of recipient are between 50-60K, disk space will get exhaust and CiviCRM will stop working until we clear the cache.
I know we have scheduled job to clear the template cache (with minimum 1 hr interval). but this job will remove entire CiviCRM cache which can be re-used for other templates files and not necessary to delete it.
This PR will delete the smarty cache generated from string input which can not be reused and resolved disk space issue.