Closed (duplicate)
Project:
Theme developer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2009 at 10:03 UTC
Updated:
4 Nov 2012 at 01:43 UTC
I'm sure this must have been previously covered but I can't find reference to this problem elsewhere on the forum
I have a shared hosting environment and whenever I use Devel it spurls out lots of unwanted files into the /tmp partition eventually causing all my sites to seize up.
This time there were over 2 thousand file beginning with "devel_themer"
How do I stop Devel from doing this?
Comments
Comment #1
moshe weitzman commentedfiles are cleaned up during cron. also, theme developer is now its own project - not in devel.
Comment #2
AndyW commentedhold on, I've made a mistake
I don't know how the hell I've managed to submit this to theme developer version 7
It is for devel version 6 - shall I submit it again?
Comment #3
effulgentsia commented@Divisive: in the issue description, you ask how to stop devel from generating files. I think that's a good feature request, so I'm changing the issue title, and making it an active issue for 7.x.
If the issue is that the files are created in a directory that you have limited space on given your hosting arrangements, you can change the Drupal tmp files directory on the admin/settings/file-system page.
If the issue is that they're not being cleaned up often enough, they're being cleaned up on cron, so set your cron job to run /cron.php more often. Also, there's another issue to make them cleanup when the module is disabled: #578420: Cleaning of devel_themer_* files while disabling module..
Also, if you're not using the 'Theme developer' module, you can disable it (while still keeping the Devel module enabled), and the files won't get generated. But if you are using the module, the files need to be generated, because they contain information needed by the module.
Comment #4
JeremyFrench commentedI can see that this is an issue, looking through the code, I believe that the variables used to be in the database.
I think a reasonable work around would be to put the uid into the file names, and clear files on each request. I'll have to see how much of a hit that has on performance.
Comment #5
JeremyFrench commentedChanging title to that of the problem rather than a solution.
Comment #6
JeremyFrench commentedComment #7
JeremyFrench commentedThere were a number of bugs in the issue queue around this.
They can be summarized as
So I am thinking that we need to clean files more often, and clean just the specific files that are used for a particular user/site.
I'll see what I can do.
Comment #8
geerlingguy commentedI'm having the same problem - unable to create files... I'm using private filesystem, and the files should be created in the /tmp directory on the server, which has proper permissions (777 - other modules create tmp files without a problem).
Comment #9
hkirsman commentedNeed this!
Comment #10
raulmuroc commentedGo to: #327512 devel_themer leaves files in /tmp