- Posts: 4
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.
Never create new thumbnails
- sinicure
-
Topic Author
- Offline
- New Member
Thanks
Please Log in or Create an account to join the conversation.
- MP Media
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- sinicure
-
Topic Author
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Platinum Member
- Posts: 1188
The script checks the creation time of the thumb respect the current time.
If the script see that the creation time is too small respect the time you gave
at the config page of the plugin, tries to regenerate the thumb.
The issue you talk about remembers me an old bug of the sig pro
but in the latest version is fixed.
Can you please post the 3-4 lines of sig pro where you can find the $cache_expire_time?
Thank you!
Please Log in or Create an account to join the conversation.
- sinicure
-
Topic Author
- Offline
- New Member
- Posts: 4
// create thumbnails
if (file_exists($tempfolder.md5($_images_dir_.$name).".".$format) && filemtime ($tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 120 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format.'" />'.$rightcomment;
} else {
$fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
$toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
$toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
$result = makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
if($result)
$html .=$leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
else
$html .='<span>Error creating thumbnail!</span>';
}
I've tried seting the cache to 45000 (about a month) in both the above code and the config area of the mambot but niether change made a difference. I tried changing them both to 0 (assuming that would be never refresh) but it had the same results. In either case it would cache the thumbnails for about 10 minutes.
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Platinum Member
- Posts: 1188
Please Log in or Create an account to join the conversation.
- sinicure
-
Topic Author
- Offline
- New Member
- Posts: 4
As for the value of the filemtime, I'm not exactly sure what you mean? If you mean the time the thumbs are modified, the modification times are current. If I reload the page and hour from now, they will be recreated in the temp directory.// create thumbnails
if (file_exists($tempfolder.md5($_images_dir_.$name).".".$format) && filectime ($tempfolder.md5($_images_dir_.$name).".".$format) + $cache_expire_time * 120 > time()) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format.'" />'.$rightcomment;
} else {
I also have another issue where the thumbs are not displayed properly when I click on menu links. Here is the site in question:
http://www.timelesswedding.ca/practice
Here's the plugin_jw_sigpro .php for reference if you need it.
****
I appreciate the help
Please Log in or Create an account to join the conversation.