It is responding very slowly when I try to edit an existing template, and I assume that it is making a deep search for the node.xxx.tpl.php file.
If that is the cause is there a way to restrict the folders it searches in?

/voipfc

Comments

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

How long is it taking, and what kind of system are you using?

Just a quick test with a stop watch my laptop(Windoze XP w/ XAMPP) with 5x-1.9 installed takes 3.6 seconds from clicking on the edit template link to full page load.
My server(Gentoo Linux w/ LAMP) is getting 9.1 seconds per page load.

voipfc’s picture

The server is quite an old one 1Ghz Pentium III with 384Mb of RAM and 20Gb hard disk. It could be the reason why.

I would like to know more about the internal workings.

When contemplate is handling a theme, does it search the necessary directories before using the one in the stored in the database, or does it decide for once whether the theme is supposed to come from the database, and handling that cached result forever, until the user comes to edit the theme again?

I noticed this because I created a folder below the sites/all/contemplates folder and stored them there hoping that contemplate would miss them and allow me to edit it again, but it refused after finding them.

Is it possible to limit it to some preset paths?

I am quite new to Drupal theming, but is it possible to copy the file generated by contemplate and use it as discussed in http://drupal.org/node/11816?