Ticket #6595 (closed Bug: fixed)
createObject + portal_factory calls invokeFactory twice
| Reported by: | nouri | Owned by: | alecm |
|---|---|---|---|
| Priority: | major | Milestone: | 2.5.4 |
| Component: | Infrastructure | Keywords: | |
| Cc: |
Description
Because of how the createObject.cpy script is written, it will call invokeFactory twice. Once for the orginal request to 'createObject', and once for the URL where it's redirecting to (see 'createObject.cpy.metadata'), like: .../portal_factory/Document/document.2007-05-16.8972038581/edit
invokeFactory takes 0.5 seconds on my instance. By converting the 'createObject' script to a conventional Python script and just doing a redirect in case portal_factory is used, I was able to save those 0.5 seconds, which makes a *huge* difference in user experience.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


My sketchy createObject.py