Open Bug 343346 Opened 18 years ago Updated 10 years ago

[mod_perl] Cache Bugzilla->template per-process to improve performance

Categories

(Bugzilla :: Bugzilla-General, enhancement, P4)

2.23
enhancement

Tracking

()

People

(Reporter: mkanat, Unassigned)

References

Details

Right now we're creating a new Bugzilla->template on each request.

Instead, it might be better to just keep re-using the Template object over and over as long as we're in the same process. This would also let us take advantage of the Template-Toolkit cache, where it's already loaded the template code into memory and doesn't even have to read the disk for the data.
mkanat what is involved with this request?
(In reply to comment #1)
> mkanat what is involved with this request?

  Discovering a working way to cache items per-process under mod_perl.
Oh, and then making sure that Template-Toolkit doesn't leak like crazy across requests.
Priority: -- → P4
glob: didn't you fix that in bug 778631?
(In reply to Frédéric Buclin from comment #4)
> glob: didn't you fix that in bug 778631?

bug 778631 implements a single Template::Provider object per process, which is different from a Bugzilla::Template object per process.  there may be additional gains by caching the main template object, as this is the recommended mod_perl deployment strategy for template-toolkit.
You need to log in before you can comment on or make changes to this bug.