Forums / Setup & design / clearing image alias cache not working

clearing image alias cache not working

Author Message

Marko Žmak

Sunday 04 October 2009 5:36:26 pm

I'm using eZ 4.1.3 and I have a problem with clearing image alias cache. When I try to clear them with "ezcache.php" script, they are not cleared. Here is what I did:

1) I have setup scaling for "article_thumb" image alias to 200x150
2) Then I have loaded the page and the image was shown in 200x150 dimenzions
3) After that I have changed the dimenzions for "article_thumb" alias to 100x70
4) I have cleared the image alias cahce with:

php bin/php/ezcache.php --clear-tag=image --purge

and reloaded the page.

After that the images were still in 200x150 dimenzions.

I have also tried this commands:

php bin/php/ezcache.php --clear-id=imagealias --purge
php bin/php/ezcache.php --clear-id=imagealias --clear-all --purge
php bin/php/ezcache.php --clear-tag=image --clear-all --purge

But nothing works. I have checked the permissions of the files and folders in the storage folder, and they all have writable access.

What's the problem, why the image aliases aren't being cleared? Can anyone suggest a sollution?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Łukasz Serwatka

Monday 05 October 2009 2:19:09 am

Hi,

Have you tried combine it with view cache? If so then it smells like a bug. Does it work if you use admin interface? (You can clear image aliases cache there.)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marko Žmak

Friday 23 October 2009 8:32:07 am

Yes I have tried combining it with view cache and it doesn't work either.

Clearing image alias cache from admin interface also does nothing.

Any suggestions how to detect what's happening?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Jérôme Vieilledent

Saturday 24 October 2009 3:31:09 am

Hi !

I have the same problem and it seems that this is an issue with the Stale Cache, as "objects" (cache and images) are only expired, never deleted.
To me, this is a real issue (we had disk space issues because of that) and the only way to delete images is to make a <i>find</i>, filtering by modification date that should be 1977 May 26 (Star Wars first release in theaters ^_^ <= So geek !)

Jérôme Vieilledent

Saturday 24 October 2009 3:41:47 am

Here is the issue : http://issues.ez.no/IssueView.php?Id=15717&activeItem=1

Marko Žmak

Saturday 24 October 2009 11:47:11 am

I don't have stale cache enabled, I use eZFSFileHandler.

So maybe this isn't related only to stale cache.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth