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

eZ debug

Timing: Jan 18 2025 15:54:43
Script start
Timing: Jan 18 2025 15:54:43
Module start 'content'
Timing: Jan 18 2025 15:54:43
Module end 'content'
Timing: Jan 18 2025 15:54:44
Script end

Main resources:

Total runtime0.9564 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.2578180.8281
Module start 'content' 0.00510.8395 770.0859641.4375
Module end 'content' 0.84460.1116 1,411.5234341.0703
Script end 0.9562  1,752.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4319210.0002
Check MTime0.00180.1871210.0001
Mysql Total
Database connection0.00060.060110.0006
Mysqli_queries0.878091.81242050.0043
Looping result0.00190.19902030.0000
Template Total0.930197.320.4651
Template load0.00230.236220.0011
Template processing0.927997.022320.4639
Template load and register function0.00010.010110.0001
states
state_id_array0.00140.145610.0014
state_identifier_array0.00080.080820.0004
Override
Cache load0.00200.2082390.0001
Sytem overhead
Fetch class attribute can translate value0.00100.107140.0003
Fetch class attribute name0.00100.103390.0001
XML
Image XML parsing0.00380.393340.0009
class_abstraction
Instantiating content class attribute0.00000.0024120.0000
General
dbfile0.00700.7358440.0002
String conversion0.00000.004530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs