Jump to content

Tons of wrt... files on /tmp folder (block categories)


Recommended Posts

Hi,

A few days ago I upload a prestashop site to my server and today I received a email warning from the server about my /tmp folder being full (it's a tiny mounted disk partition). The folder it's full with files that start with "wrt" (wrtIpkYpI, wrtc45LiG, etc) and they are all cached files from the "block categories" module:

 

<?php /*%%SmartyHeaderCode:21008978595037c44d61e901-87680624%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
 'file_dependency' =>
 array (
'de47f200780566e0d6b1a3ff6cce5bcfd678257c' =>
array (
  0 => '/home/algo/public_html/themes/theme327/modules/blockcategories/blockcategories.tpl',
  1 => 1334693154,
  2 => 'file',
),
'883f45502eba8ff54c7d9a01ba128d504aae1012' =>
array (
  0 => '/home/algo/public_html/themes/theme327/modules/blockcategories/category-tree-branch.tpl',
  1 => 1334693155,
  2 => 'file',
),
 )
...

 

This behavior it isn't happening on my local machine. Do you know what are this files? Why are they on the /tmp folder? can I delete them? Can I change some config to avoid this files been save on the /tmp folder?

 

Thanks!

Link to comment
Share on other sites

  • 8 months later...
  • 2 weeks later...
  • 3 weeks later...

Hi,

 

The problem is not resolved yet. This is the module blockcategorie (Prestashop original module) which create the troubles by generating files in the server tmp folder.

 

We have tried to uninstall, install, reinitialize the module, but nothing fixed it.

 

The only solution we have found at this time is to comment the line:

Tools::enableCache();

in hookLeftColumn (line 168) and hookFooter (line 240).

 

We don't know, for the moment, if there is any border effects on doing this. But we did not have file created since we have done this.

 

Hope this help.

Link to comment
Share on other sites

  • 4 months later...
×
×
  • Create New...