Fórum

Issue with image url cache..

Sam Wan, modificado 13 Anos atrás.

Issue with image url cache..

Liferay Master Postagens: 660 Data de Entrada: 03/03/09 Postagens Recentes
Hi,

I can view image in the following url:

http://localhost:8080/image/proddfjsdf?img_id=24003&t=854

After I changed the content of the image in the the image table with the same image ID, for example 24003 in the above example, I am still seeing the same image instead of the new image that have updated in the image table.

Is there any way I can see the new image file with the same image ID?
If not, I will have to change the image ID when I change the image file.

Thanks
Sam
thumbnail
Samuel Kong, modificado 13 Anos atrás.

RE: Issue with image url cache..

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
Are you modifying the database directly?

Control Panel > Server Administration > Clear the database cache.
Sam Wan, modificado 13 Anos atrás.

RE: Issue with image url cache..

Liferay Master Postagens: 660 Data de Entrada: 03/03/09 Postagens Recentes
Samuel Kong:
Are you modifying the database directly?

Control Panel > Server Administration > Clear the database cache.


Hi Samuel,

Thank you for your response.
How can I pro grammatically clear this database cache?
I want to update or clear this cache whenever I have uploaded a file.

Thanks
Sam
thumbnail
Samuel Kong, modificado 13 Anos atrás.

RE: Issue with image url cache..

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
You really should not be updating the database directly. You should be using the API because many value changes require updating multiple tables. If you are updating Image Gallery images, you should use IGImageLocalServiceUtil. Other images can be updated using ImageLocalServiceUtil. Using the API will also save your cache issue.