Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Server Timeouts during publishing -- Lots of TemplateIfs being processed

 

 


LostCoder
User

Nov 27, 2006, 5:33 PM

Post #1 of 4 (724 views)
Shortcut
Server Timeouts during publishing -- Lots of TemplateIfs being processed Can't Post

Hello,

My server never timed out during normal publishing, but tonight I began adding a ton of templateIf statements.. Probably in the area of 300 or so on the template (and still counting). The publish time has gone up signidicantly, which i assume is due to the fact that AM has a ton of variables to look at. I have no prob with waiting for it to publish everything. [Note* -- i have turned off all publish rules and am publishing only the 'Article Pages (main article detail pages)' rule when i publish]

In any case, the server is now timing out pretty often while i try to publish.

My initial question is:

Is it the 300 templateIf statements that are causing this? Or could it be that my server sucks and I need more power?

My next question is:

Is it possible to use multi variable TemplateIf's? Right now i am basically saying "If the category is x, do Y" and i do this for each category.

Can i do something like this: "If the category is x,x1,x2,x3,x4, do Y" ? <-- while this might help, i will still have a ton of TemplateIfs..

Last question:

will switching to SQL DB make it less likely to timeout during publishing?


Any suggestions would be appreciated.

Thanks!

LC


Dave
Staff / Moderator


Nov 28, 2006, 1:02 PM

Post #2 of 4 (714 views)
Shortcut
Re: [LostCoder] Server Timeouts during publishing -- Lots of TemplateIfs being processed [In reply to] Can't Post

We've had a few reports that having lots and lots of tmeplateIfs can slow things down a bit. I'm currently working on the next version which will support multicategory articles and faster publishing.

I'm going to optimize or rewrite the section that deals with templateIfs to make it faster for cases such as yours where it affects the speed.

Dave Edis - Senior Developer
interactivetools.com
 


LostCoder
User

Nov 28, 2006, 1:36 PM

Post #3 of 4 (710 views)
Shortcut
Re: [Dave] Server Timeouts during publishing -- Lots of TemplateIfs being processed [In reply to] Can't Post

Dave,

Thanks for the reply.

It turns out our server guys were doing maintenance to Cpanel last night, which is responsible for the Timeouts. I didnt get the memo, but apparently no one else did either.

Publushing is working, though it is taking a while.

To be honest, I have can't complain. I have a ton of variables in there, so i don't really mind 10 - 15 minutes for publishing.

But hey, if you can make it faster, more power to ya!

Thanks!



LC


Dave
Staff / Moderator


Nov 28, 2006, 1:41 PM

Post #4 of 4 (709 views)
Shortcut
Re: [LostCoder] Server Timeouts during publishing -- Lots of TemplateIfs being processed [In reply to] Can't Post

Thanks for the update! Glad it's back up to speed!

Dave Edis - Senior Developer
interactivetools.com