Project

General

Profile

Issue with redux in LOI

Added by Sebastian Scherer almost 10 years ago

Hi

I properly installed redux-caching, i.e. works fine for Image Viewer for example.
When using LOI I get the attached errors.
Obviously the images are not there or something with redux is broken.
When I look at the same images with image viewer everything is perfect.

Then I checked the redux log-file.
There are no entries related to LOI requests, all the Image Viewer requests are properly listed.

What did I break?
How can I debug this?

Thanks and best regards,
Sebastian


Replies (3)

RE: Issue with redux in LOI - Added by Sebastian Scherer almost 10 years ago

I made an interesting observation:
If I double-click on the error message the desired image gets opened correctly in a new window.
Thus I guess, the problem is redux related and our storage is fine.

Best,
Sebastian

RE: Issue with redux in LOI - Added by Anchi Cheng almost 10 years ago

I need to fix this, I think.

ENABLE_CACHE variable defined in myamiweb/config.php is intended for imcache which uses a separate thread. It is the old style cache that creates the jpeg file at a default size of all images in advance rather than on demand.

This restriction is a result of Issue #2225.
By setting ENABLE_CACHE, it assumes that you have imcache running, and wants to reduce the load to redux server by restricting loi.php to use jpeg images created by imcache.

If your on-demand redux cache works well, you don't need to use imcache, i.e., you can turn ENABLE_CACHE off, although some prefers using it.

You can turn off the use-jpeg-cache restriction in myamiweb/loi.php

change

$view->setCacheOnly(true);

to
$view->setCacheOnly(false);

RE: Issue with redux in LOI - Added by Sebastian Scherer almost 10 years ago

Thanks a lot for your reply.
I turned off the use-jpeg-cache restriction and it looks like it works fine now.

Thanks and best regards,
Sebastian

    (1-3/3)