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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:23:14
Script start
Timing: Jan 18 2025 19:23:14
Module start 'layout'
Timing: Jan 18 2025 19:23:14
Module start 'content'
Timing: Jan 18 2025 19:23:15
Module end 'content'
Timing: Jan 18 2025 19:23:15
Script end

Main resources:

Total runtime1.1594 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1484152.6406
Module start 'layout' 0.00590.0029 741.789139.4766
Module start 'content' 0.00881.1492 781.2656636.3438
Module end 'content' 1.15800.0013 1,417.609416.1406
Script end 1.1593  1,433.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2938160.0002
Check MTime0.00150.1271160.0001
Mysql Total
Database connection0.00090.073610.0009
Mysqli_queries1.086793.7284680.0160
Looping result0.00080.0676660.0000
Template Total1.116896.320.5584
Template load0.00220.191620.0011
Template processing1.114696.135420.5573
Template load and register function0.00010.008310.0001
states
state_id_array0.00160.138510.0016
state_identifier_array0.00100.088120.0005
Override
Cache load0.00190.1681390.0000
Sytem overhead
Fetch class attribute can translate value0.00090.074430.0003
Fetch class attribute name0.00160.136990.0002
XML
Image XML parsing0.00160.139830.0005
class_abstraction
Instantiating content class attribute0.00000.0023120.0000
General
dbfile0.00100.0880330.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs