Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 12. Apr 2025, 11:36

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: who's got the cache?
PostPosted: 10. Dec 2008, 08:15 
Offline

Joined: 15. Jan 2006, 01:53
Posts: 55
Location: Ohio USA
Has anybody else experienced massive loss of images in the cache directory or is it 1and1.com messing up?

I have filled the cache, verified all images (small and thumb) are there and show in the browser, checked weekly, ...

Then I stop checking and all or most all of the cache is gone. This is the 4th time this has happened! This time all but about 18 of the small.jpg images are gone.

Needless to say I am frustrated.


Top
 Profile  
 
 Post subject:
PostPosted: 10. Dec 2008, 09:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Actually TWG does check the cache if files are not touched for a long time. But only .small.jpg and the slideshow images are checked.
No thumbnails.

$cache_time=42;

Is the settings where you can set / disable this behaviour. and 42 is the number of days.
But as I said. Thumbnails are never removed.

I don't know what 1and1 is doing here. how many images where in the cache?

set
$cache_time=-1;
Then this is disabled.

I just checked my cache folder of the demos where many version of TWG where deployed. The oldest files (thumbs) are more than 1 1/2 years old. My .small images are actually very new. But this depends on the server. If the file date when the file was at last accessed is not updated properly by the OS the file is regenerated.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 10. Dec 2008, 09:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just checked the code.
I use fileatime which should return the time the file was accessed the last time.
But I read also that this is sometimes disabled in devices with lot of traffic. And 1and1 could have disabled this.
But you say that thumbs are gone as well. Therefore I think this is not your problem.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 10. Dec 2008, 11:09 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I added an additional check if the last accessed time is different to the last modified date. If they are equal I don't cleanup the cache because the last access time is most likely disabled like on your system.

I'll test this on my demo right now and this will be included in the final of 1.7.6.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 56 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
powered by phpbb | Datenschutz/ Privacy policy