![]() |
|
print_album_menu.php heavy load - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: print_album_menu.php heavy load (/thread-12661.html) |
print_album_menu.php heavy load - maabo - 2017-02-09 Hello, please consider, if the code for counting all gallery subitems (line 259 to 276 of the print_album_menu.php) should be interrupted if it takes too long to evaluate. Or if it can be cached somehow. Under my installation (latest version 1.4.14), there are 12000 photos in 100 albums and it took [b]14 seconds[/b] to enumerate the menu function. With html_static_cache disabled the server was unusable. Static html caching helped, but when cache expires, it takes too long to generate it again. I suggest:
print_album_menu.php heavy load - acrylian - 2017-02-10 We will probably not create another option for disabling the count (we really try to avoid "option overload"…) but you can do that yourself via the menu function's parameter as you already noticed gladly. 2 and #3 sound like ideas. We will take a look (or you could contribute yourself via a pull request via GitHub).print_album_menu.php heavy load - sbillard - 2017-02-10 1. The |