Active
Project:
Block Cache Alter
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2012 at 19:51 UTC
Updated:
8 Nov 2014 at 10:54 UTC
Jump to comment: Most recent
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
Comment #1
mikeytown2 commentedI think user 1 doesn't get block caching. Try it when the UID != 1.
Comment #2
denny84 commentedThanks .. I will try your suggestion.
Comment #3
Corwin commentedUsing 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;
Comment #4
bastnic commentedAre 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.
Comment #5
yannisc commentedSame problem here with no context module enabled.
Comment #6
ckngGetting 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
Comment #7
jwilde commentedtry this code, https://drupal.org/node/1562700#comment-7256678
Comment #8
fabianx commentedI 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.
Comment #9
fabianx commentedYou 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