First of all, thanks for great module.

I am using "Cache once for everything" option for all the blocks. I turned on "Display Page Timer" from Devel. My page load times have gone up instead of lesser page times. Is there any other configuration required?

I switched to "Per Page", but still page load times are higher without module installed.

Thanks

Comments

mikeytown2’s picture

I think user 1 doesn't get block caching. Try it when the UID != 1.

denny84’s picture

Thanks .. I will try your suggestion.

Corwin’s picture

Using an account with a UID!= 1:

Using apachebench locally, 10 concurrent, 1000 requests (ab -n 100 -c 10):

before blockcache_alter:
Requests per second: 19.96 [#/sec] (mean)
Requests per second: 19.88 [#/sec] (mean)

after blockcache_alter:
Requests per second: 19.74 [#/sec] (mean)
Requests per second: 19.65 [#/sec] (mean)

Slight slowdown in performance. According to Xhprof blocks are taking over 50% of our render times.

I did this to enable caching:
UPDATE block set cache=8;
DELETE FROM blockcache_alter;
INSERT INTO blockcache_alter SELECT bid, module, delta, cache FROM block;

bastnic’s picture

Are you using context ? In this case, see this bug #1251240: Context block reaction lists blocks without calling hook_block_info_alter(). which proposed a patch and this module : https://drupal.org/project/context_blockcache_alter which embed this patch in a proper module.

yannisc’s picture

Same problem here with no context module enabled.

ckng’s picture

Getting same result as the rest, getting minor reduced performance, block are not cached AFAICT.

Tested with
- UID != 1
- no context
- core/module block
- custom block

jwilde’s picture

fabianx’s picture

Issue summary: View changes

I assume you are using a node_grants using module. You will indeed need the patch from #1562700: Getting back expiration feature into D7 version for block.module.

Leaving open as I might have something better soon :-D.

fabianx’s picture

Title: No Performance achieved. » [Solutions inside] No Performance achieved.

You can use the render_cache module version 7.x-2.x together with block cache alter by enabling render_cache_block core's block cache, which is taken over by render cache.

That makes it possible to use without the node grants patch.

You can also set:

drush vset render_cache_debug 1

to see lots more information about the blocks being cached.

Also there is now the core variable to enable block cache regardless of node_grants setting: block_cache_bypass_node_grants

Thanks,

Fabian