View Single Post
Old February 23rd, 2007, 04:48 PM   #1 (permalink)
Kirby
Member
 
Join Date: Jun 2004
Posts: 164
Suggestion to improve Performance

I've noticed that vBGallery 2.1 requires a file edit to init.php

This seems to be rather bad, as this edit mus be applied every time a vBulletin update is performed.
Furthermore, as far as I can see from the code, it is used to load phrasegroups and datastore items for gallery stuff on forumhome and member profile.
But the call is always executed - in all other frontend scripts, archive, mcp and acp.

Therefore it might be better to execute it conditionally.

One further step would be to move the code to config.php, as this file normally does not get touched upon upgrades.

IMHO, the best way would be a plugin on init_startup:

Code:
Content visible to verified customers only.
Kirby is offline