I have noticed very high page loading times on my site. Using helper function from http://2bits.com/articles/high-php-execution-times-drupal-and-tuning-apc... I get these results:
-- skip --
image: 0.2, total: 8.32
imageapi: 0.1, total: 8.42
imageapi_gd: 0.1, total: 8.52
imageapi_imagemagick: 0.1, total: 8.62
imagecache: 0.13, total: 8.75
imagecache_ui: 0.11, total: 8.86
imagecache_canvasactions: 0.23, total: 9.09
imagecache_coloractions: 0.2, total: 9.29
imagecache_customaction: 0.09, total: 9.38
imagecache_textactions: 2560.99, total: 2570.37
imagefield: 0.22, total: 2570.59
-- skip --

As you see imagecache_textactions has abnormal drupal_load() time. My setup is php 5.2.6 with eaccelerator opcode cache v. 0.9.5.3

Comments

crea’s picture

Commenting the line "imagecache_action_definitions(TRUE);" solved the problem. I think it was rebuilding imagecache actions cache from scratch on EVERY page load!

imagecache_action_definitions($reset = false)
Description

Pull in actions exposed by other modules using hook_imagecache_actions().
Parameters

$reset Boolean flag indicating whether the cached data should be wiped and recalculated.
dman’s picture

Status: Active » Reviewed & tested by the community

Yes, it would have been.
If the line was sitting there uncommented, it would have been a leftover from testing - it's impossible to develop with that cache enabled, so it needed to be flushed every test.
It should have been re-commented before release - thanks for catching that!

dman’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the investigation! - I've pushed through a bugfix release, as this was indeed critical enough to be wrong.
... that's really slow
However I would have thought that the performance footprint would have then come from imagecache itself? the imagecache settings caching has been my thorn for a while.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.