Image Cache Problem

ridgelinegraphics
14 years, 3 months ago
Hello,

I am experiencing an issue with Mobile Joomla. For the most part, this component works great. However, I am experiencing difficulties with images. We currently have two images displayed on our mobile site which are of web cams. These .jpg images refresh on the server periodically and display just fine on the full site. However, the mobile version of the website never shows the most recent image. The images are simply overwriting themselves so it's not like a new version of the image is being created elsewhere. Any ideas on why the images will not refresh via mobile version? I have emptied just about every cache I can think of.
ridgelinegraphics
14 years, 3 months ago
Almost forgot. The website I am working on is www.missionridge.com
miohtama
14 years, 3 months ago
This is not actual bug report, but a feature.

The mobile images are automatically resized for the mobile screen. Resize is an expensive process and thus the result is cached.

Two quick ideas

* periodically clear this cache (as cron job)

* modify image resize code so that some images are marked specially and not cached
miohtama
14 years, 3 months ago
And by default resized images are stored on file system under Joomla! installation in path

./images/stories/Resized/key_100x75.jpg

./images/installation/Resized/settings5_229x122.jpg

...and so on....
dryabov
14 years, 3 months ago
There is other idea: to set modification time of the rescaled images equal to the modification time of the source image. Then it will be possible to check when the source image will be modified. The lack of this approach is that it depends on used type of file system (some of them stores modification date only, and not time; maybe some doesn't store modification time at all; maybe in some it's impossible to set modification time "in the past", etc.).

We'll try to realize and test it, but I cannot estimate when it will be ready to use.
ridgelinegraphics
14 years, 3 months ago
miohtama wrote:
And by default resized images are stored on file system under Joomla! installation in path

./images/stories/Resized/key_100x75.jpg

./images/installation/Resized/settings5_229x122.jpg

...and so on....


Is there any code modifications I can do so that it does not cache the resized images, or so that it refreshes roughly every 15 minutes on the mobile site?
dryabov
14 years, 3 months ago
ridgelinegraphics wrote:
Is there any code modifications I can do so that it does not cache the resized images, or so that it refreshes roughly every 15 minutes on the mobile site?


Actually it's not just a cache. MJ saves rescaled image to be accessible by http request.

I've sent you apatch that realizes abovementioned idea to compare modification timestamps. Don't forget to inform us about any problems with it.
ridgelinegraphics
14 years, 3 months ago
Thank you for the patch. How do I retrieve it? Will you be sending it to me via email or through the forum somewhere?
dryabov
14 years, 3 months ago
ridgelinegraphics wrote:
Thank you for the patch. How do I retrieve it? Will you be sending it to me via email or through the forum somewhere?


Yes, I've sent it to your email (nick@...).
ridgelinegraphics
14 years, 3 months ago
I have not received any email with the patch?

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.