Welcome, Guest
Username Password: Remember me

Image Cache Problem
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Image Cache Problem

Image Cache Problem 13 years, 12 months ago #661

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.

Image Cache Problem 13 years, 12 months ago #2665

Almost forgot. The website I am working on is www.missionridge.com

Image Cache Problem 13 years, 12 months ago #2671

  • miohtama
  • OFFLINE
  • Expert Boarder
  • Posts: 112
  • Karma: 4
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

Image Cache Problem 13 years, 12 months ago #2672

  • miohtama
  • OFFLINE
  • Expert Boarder
  • Posts: 112
  • Karma: 4
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....

Image Cache Problem 13 years, 12 months ago #2673

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

Image Cache Problem 13 years, 12 months ago #2674

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?

Image Cache Problem 13 years, 12 months ago #2675

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

Image Cache Problem 13 years, 12 months ago #2676

Thank you for the patch. How do I retrieve it? Will you be sending it to me via email or through the forum somewhere?

Image Cache Problem 13 years, 12 months ago #2677

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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@...).

Image Cache Problem 13 years, 12 months ago #2678

I have not received any email with the patch?
  • Page:
  • 1
Time to create page: 0.21 seconds

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.