CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Smarty generates (unnecessary?) temporary files which are not cleaned up
Pages: [1]

Author Topic: Smarty generates (unnecessary?) temporary files which are not cleaned up  (Read 1198 times)

Fabian_SYSTOPIA

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 3
  • CiviCRM version: 4.3.x, 4.4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.4.10
  • PHP version: 5.4.10
Smarty generates (unnecessary?) temporary files which are not cleaned up
January 12, 2015, 02:27:49 am
When using CiviMail to send out a newsletter, smarty generates two files per recipient (html and txt?) in the folder "templates_c". Each file is about 50 kb each which sums up to a couple of GB if you have around 40k recipients.

Also, those files are not deleted by the job "Clean-up Temporary Data and Files" or any other automated task. The only way is to perform "Cleanup Caches" manually.

We will try to find out why the job "Clean-up Temporary Data and Files" does not clean up those files.

We are however wondering why those temporary files are necessary in the first place. Does anyone know what they are used for and/or why those files would not be cleaned up later?

Any feedback would be appreciated :)

Regards
Fabian

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Smarty generates (unnecessary?) temporary files which are not cleaned up
January 12, 2015, 11:15:41 am
Hi,

It's smarty compiling each msg. I recall one (from EFF? micah?) trying to disable the compilation and being stopped somewhere, don't recall the detail.

Ideally, there is a single compiled file that would call the function that generates the token instead of one compiled file per recipient. that would probably improve a lot performances as well.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Smarty generates (unnecessary?) temporary files which are not cleaned up
January 12, 2015, 01:07:04 pm

r u using smarty tokens in civimail newsletters? if not, might be best to disable that option

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SandyEllingson

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
  • I want to make a difference!
    • Sandy Social Strategist
Re: Smarty generates (unnecessary?) temporary files which are not cleaned up
January 15, 2015, 07:29:12 pm
I am having this same issue with the unnecessary ? since upgrading to 4.5.5 on Wordpress.  I tried to find where to disable the smarty option but could not find it. Could anyone tell me where to do this?

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: Smarty generates (unnecessary?) temporary files which are not cleaned up
March 29, 2015, 04:57:50 pm
The question I don't think was answered fully here. I am also experiencing that for Joomla 3.4.x ~/media/civicrm/templates_c/ is not being flushed when using this function. It is equally as important as the other caches to flush.

I don't know where to find the coding that performs this function to add the templates cache path to. Please advise.

Thanx.
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Smarty generates (unnecessary?) temporary files which are not cleaned up
July 21, 2015, 08:52:52 am
Work to extend the cleanup job api is in progress for 4.7: https://issues.civicrm.org/jira/browse/CRM-16871
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Smarty generates (unnecessary?) temporary files which are not cleaned up

This forum was archived on 2017-11-26.