skjaiswal1991 / 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

cache seems not to work properly #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

when the image is requested the first time it renders properly, any further 
request for the same image doesnt render though the file is already in the 
cache.

Original issue reported on code.google.com by Abderazz...@gmail.com on 10 Jan 2011 at 1:06

GoogleCodeExporter commented 8 years ago
What version of SLIR are you using?

Are there any error messages in the SLIR log or your PHP log?

How do you know that the file isn't coming from the cache?

Can you post a link to where this happens?

Original comment by joe.lencioni on 10 Jan 2011 at 2:00

GoogleCodeExporter commented 8 years ago
Thank you for your reply and sorry I didnt give enough infos.
version latest stable 2.0b4
Zend server     ZendServer-CE-5.0.1_RC29-5.3.2-Windows_x86
Windows vista

I noticed this in the phpinfo page --disable-calendar , which doesnt fullfill 
the requirements but I remember I ve already made usage of  it and it worked 
great with the same environment but I think this was for an older version. but 
now it renders only the first time, and next times I got only the image url 
text shown as image. 

could it be a php ini setting matter ? I m not sure but I might have changed 
some ini setting in the meantime.

Original comment by Abderazz...@gmail.com on 10 Jan 2011 at 5:54

GoogleCodeExporter commented 8 years ago
Thanks for the info!

Actually, with the 2.0b4 version, I updated the library that required the 
calendar stuff (PEL 0.9.2 now no longer requires --enable-calendar), so I doubt 
that is the issue. Here's the original issue that prompted that on the 
requirements page 
http://code.google.com/p/smart-lencioni-image-resizer/issues/detail?id=4&can=1&q
=calendar

Can you check your SLIR error log and PHP error log and see if there is any 
useful information in there? Can you give me a URL to check out or at least a 
screenshot?

Original comment by joe.lencioni on 10 Jan 2011 at 7:51

GoogleCodeExporter commented 8 years ago
Also, are the files correctly being saved to the cache? There should be two 
directories in your cache (rendered and request). The rendered directory should 
contain copies of the rendered files while the request directory should contain 
symlinks to the files in the rendered directory.

It is possible that the request cache isn't working correctly (likely because 
you are on a Windows server). Try pasting this into your slirconfig.class.php 
file:

    /**
     * Whether we should use the faster, symlink-based request cache as a first
     * line cache
     * 
     * @since 2.0
     * @var boolean
     */
    public static $useRequestCache  = FALSE;

Original comment by joe.lencioni on 10 Jan 2011 at 7:56

GoogleCodeExporter commented 8 years ago
$useRequestCache    = FALSE;   solved the problem.

but aren t we loosing cache feature, everytime I refresh, the image in 
rendered/ seems to be touched.!

Thanks.

Original comment by Abderazz...@gmail.com on 10 Jan 2011 at 10:58

GoogleCodeExporter commented 8 years ago
You shouldn't be losing all of the caching--just the request caching not the 
rendered caching. I don't know why the file would be touched on every request. 
Do you notice a speed difference between the first request of an image and 
subsequent requests? It would be helpful if you could send me a link.

Original comment by joe.lencioni on 11 Jan 2011 at 2:11

GoogleCodeExporter commented 8 years ago
I just did some testing and I think you are right--the rendered cache doesn't 
seem to be working quite right. I'll look into this some more when I have a 
chance.

Original comment by joe.lencioni on 11 Jan 2011 at 4:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r137.

Original comment by joe.lencioni on 11 Jan 2011 at 5:08

GoogleCodeExporter commented 8 years ago
Thanks.

Original comment by Abderazz...@gmail.com on 12 Jan 2011 at 2:38