D0Gmatist / smart-lencioni-image-resizer

Automatically exported from code.google.com/p/smart-lencioni-image-resizer
GNU General Public License v3.0
0 stars 0 forks source link

Image cache not getting file requested file modified #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Update a file which has been cached
2. Request file again

What is the expected output? What do you see instead?
Should be the latest file as the image should have a more recent modified
time value.

Does not because the image path is not available to the  function.

The setParameters() call needs to come before the cache check to have the
imagepath variable set for checking against.

What version of the product are you using? On what operating system?
 * @package SLIR
 * @date $Date: 2009-03-12 10:10:19 -0700 (Thu, 12 Mar 2009) $
 * @version $Revision: 25 $
 */

 /* $Id: index.php 25 2009-03-12 17:10:19Z joe.lencioni $ */

const VERSION   = '2.0b2';

On linux server

Please provide any additional information below.

As above the parameters need to be set before the isRequestCached function
can check the file modified times.
Just moving the setParameters call above the cache checks resolves the issue.

Original issue reported on code.google.com by mark.whe...@googlemail.com on 4 Feb 2010 at 10:31

GoogleCodeExporter commented 8 years ago
Can you try this with r77 (currently the latest in svn) and let me know if it 
is still 
a problem? I think that this issue may have been fixed already.

Original comment by joe.lencioni on 5 Feb 2010 at 6:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yeah, looks like it has changed quite a bit in SVN, 52 revisions.

__construct no longer has all the bits I mentioned.

Would you not commit the current SVN to a stable version download?

For me I never really deal with SVN just stable releases, lack of knowledge 
about it
more than anything.

Original comment by mark.whe...@googlemail.com on 9 Feb 2010 at 9:41

GoogleCodeExporter commented 8 years ago
You can now get 2.0b3 from the downloads: 
http://code.google.com/p/smart-lencioni-
image-resizer/downloads/list

Would you try it out and let me know if it resolves your issue?

Original comment by joe.lencioni on 13 Mar 2010 at 8:30

GoogleCodeExporter commented 8 years ago
To be honest I don't have the time to check through the new release. Looks like 
quite
a bit has changed at a glance. The fix I made in my first post solved it enough 
to use.

If the use of slir comes up in another project I will get the latest stable and 
check
it through.

Original comment by mark.whe...@googlemail.com on 15 Mar 2010 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by joe.lencioni on 15 Mar 2010 at 12:41