- Posts: 1188
COMMUNITY FORUM
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Performance issue
- JoomlaWorks Support Team
- Topic Author
- Offline
- Platinum Member
Cause a minor bug at the php code of the SIG Pro mambot
the thumbs of the gallery are creating every time it loads the page!
Please, open to edit the file mambots/content/plugin_jw_sigpro.php
and at the line 289 where you can find the code
// create thumbnails
if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$tempfolder.md5($_images_dir_.$name).$format.'" />'.$rightcomment;
}
// create thumbnails
if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 60 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format.'" />'.$rightcomment;
}
Thank you!
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
- Andy Wilson
- Offline
- Senior Member
- Posts: 40
Thanks,
Andy Wilson
- Lefteris
- Offline
- Moderator
- Posts: 8743
Cause a minor bug at the php code of the SIG Pro mambot
the thumbs of the gallery are creating every time it loads the page!
Well (seven months later) that probably explains this...
Its cache mechanism is a menace, should carry a Government Health Warning and, preferably an OptOutCompletely command line switch. It's awful. It doesn't 'work'... Well, not as far as I've managed to observe;~| I also believe it is actually counter-productive but haven't been able to fully determine this because of all the other issues/problems with SIG PRO [sic] v1.2.
----best wishes, Robert
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
- Lefteris
- Offline
- Moderator
- Posts: 8743
'if' line right after each of the two '// if labels do exist' areas!?
Do you need to extend your work/fix now to those two lines as well?
----best wishes, Robert
// create thumbnails
if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 60 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$n
and
// if labels do exist
if ($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
- Lefteris
- Offline
- Moderator
- Posts: 8743
at what point does SIG Pro purge its thumbnail cache?
ie after (say) 120minutes of expiration time set in options.
What and where is the mechanism that does the purge
ie performs the housekeeping removal of stale files.
----best wishes, Robert
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
- José Luis Ayala M.
- Offline
- New Member
- Posts: 10
Hi my friends!
Cause a minor bug at the php code of the SIG Pro mambot
the thumbs of the gallery are creating every time it loads the page!
Please, open to edit the file mambots/content/plugin_jw_sigpro.php
and at the line 289 where you can find the codereplace it with this code// create thumbnails if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) { $html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$tempfolder.md5($_images_dir_.$name).$format.'" />'.$rightcomment; }// create thumbnails if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) && filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 60 > time()) { $html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format.'" />'.$rightcomment; }
Thank you!
Hi vinikey,
I made those changes in my site, to change the original thumbails for another ones (custom thumbails), but from time to time, it goes again to the originals.
Is there a way to keep my custom thumbails?.
Regards
Jos
- JoomlaWorks Support Team
- Topic Author
- Offline
- Platinum Member
- Posts: 1188
Can you remember me what change you have done to use custom thumbs?!
Try to remove the code expression
&& filemtime ($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 60 > time()
Thank you!
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
- José Luis Ayala M.
- Offline
- New Member
- Posts: 10
I only made the changes that I mention in my post "...open to edit the file mambots/content/plugin_jw_sigpro.php and at the line 289 where you can find the code... bla, bla...".
I will try your suggestion.
Regards
Jos