Gallery 3 for big site

Je55e

Joined: 2008-01-31
Posts: 33
Posted: Mon, 2009-08-10 14:47

Hi all,

Glad to see G3 is nearly out. And there are some big changes.
I have used G2 for some time and developed Ebony G2 theme(http://gallery.menalto.com/node/74978).

I am going to back to use G3, and will develop a new theme for it. but I have one question to consider, can G3 deal with high traffic? e.g. 100k PVs/day, 100K pictures in total, with this traffic, how about server load? what kind of server needed? CPU, memory, etc.

Are there some big live sites? we can take a look.

Sorry for my english.
----
My Blog: http://zd6.org
Ebony Gallery2 theme

 
Lapinoo
Lapinoo's picture

Joined: 2004-05-08
Posts: 378
Posted: Mon, 2009-08-10 15:16

Well I guess someone is going to have to test it. I don't think the team had time yet to perform perfomance testing.

You can always try to migrate your G2 data in G3 and then check the behaviour of your server.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-08-10 15:29

Because G3 does not use a image firewall as G2 did, performance is greatly increased.
http://codex.gallery2.org/Gallery3:FAQ#Are_my_photos_secure.3F__They.27re_right_there_on_my_website.21

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Je55e

Joined: 2008-01-31
Posts: 33
Posted: Mon, 2009-08-10 17:49

How to disable/remove some Js files? JS effect is cool, but slow down the page load.
I found there are 300+KB js files through YSlow. Some Js files aren't useful for frontend visitors, only for admin. So what I thought is disable most js files for frontend users.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-08-10 18:41

If you look at page.html.php the JS is loaded:

    <?= $theme->script("lib/jquery.js") ?>
    <?= $theme->script("lib/jquery.form.js") ?>
    <?= $theme->script("lib/jquery-ui.js") ?>
    <?= $theme->script("lib/gallery.common.js") ?>
    <? /* MSG_CANCEL is required by gallery.dialog.js */ ?>
    <script type="text/javascript">
    var MSG_CANCEL = "<?= t('Cancel') ?>";
    </script>
    <?= $theme->script("lib/gallery.dialog.js") ?>
    <?= $theme->script("lib/gallery.form.js") ?>
    <?= $theme->script("lib/superfish/js/superfish.js") ?>
    <?= $theme->script("lib/jquery.localscroll.js") ?>
    <?= $theme->theme_script("js/ui.init.js") ?>

    <? /* These are page specific, but if we put them before $theme->head() they get combined */ ?>
    <? if ($theme->page_type == "photo"): ?>
    <?= $theme->script("lib/jquery.scrollTo.js") ?>
    <?= $theme->script("lib/gallery.show_full_size.js") ?>
    <? elseif ($theme->page_type == "movie"): ?>
    <?= $theme->script("lib/flowplayer.js") ?>
    <? endif ?>

Remove what you don't need. or wrap in a if statement for different users.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team