Web Server:
PHP, 5.2.17
Apache, 2.2.21
Total Memory, 4142612 kB
CPU, Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
MySQL, 5.1.60
MODx:
2.2.0-pl2
With plugins:
Gallery
prettygallery
FormIt
getResources
If
TinyMCE
Browser/Client:
Chrome, Firefox on windows 7
Hello guys,
I'm trying to create a nice gallery page for my client, unfortunately the image load very slow, it seems like they're not being cached. I refer to this webpage:
http://vantellingen.sethpoint.nl/projecten.html
The template code goes somewhat like this:
$ids = $modx->getChildIds($modx->resource->get('id'),1);
$output = "";
foreach($ids as $id) {
$resource = $modx->getObject('modResource', $id);
$galId = $resource->getTVValue('prettyGalleryAlbum');
$output .= $modx->runSnippet('Gallery',array(
'album' => $galId,
'thumbTpl' => 'prettyGalleryImageTpl',
'thumbWidth' => '59',
'thumbHeight' => '49',
'useCss' => '0'
));
}
echo $output;
[ed. note: senkaz last edited this post 14 years, 8 months ago.]