Same ContentView for all users groups

Author Message

Pierre Tissot

Tuesday 01 July 2008 2:06:41 am

Hello,

I have a site that is to very slow. The problem is that the site as lot of information on the contentview, the user dependent part is all in the cache-blocks, the module_reslut is the same for all users.

They are two user groups in this site, those who see 10% of the site (anonymous) and the subscribers that see the all 100%. I have a crawler that runs at night and keep the cache-block with one day of validity (and it's fast), since I canot run the crawler with a specific user only 10% of the site is fast, and since the 10% are a demo site, it's not very efficient.

It's possible to disable the contentview cache generation for each group? To have the same contentview for all users?

thanks
PiR

Vidar Langseid

Thursday 03 July 2008 2:03:55 am

The viewcache takes roles into account (users with the same roles share the same viewcache. It is not possible to turn this behavior off.

However, if 90% of your users are logged in, the view cache for those users should quite quickly be generated. I don't understand the need for generating the viewcache with a crawler then......

I am not sure it is a good advice, but it might be worth trying:
It is also possible to use cache-blocks in view templates as well. You should then probably use the ignore_content_expiry to prevent all cacheblocks (used in view templates) from being expired whenever something new is published. URL could be used as key and maybe subtree_expiry as a mechanism for managing clearing of cache. Also the "expiry" should be used to increase the TTL of the cache file.

see http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_functions/miscellaneous/cache_block
for cache-block documentation

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 11:44:15
Script start
Timing: Jan 18 2025 11:44:15
Module start 'layout'
Timing: Jan 18 2025 11:44:15
Module start 'content'
Timing: Jan 18 2025 11:44:16
Module end 'content'
Timing: Jan 18 2025 11:44:16
Script end

Main resources:

Total runtime0.8127 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.4453152.6250
Module start 'layout' 0.00720.0065 742.070339.4453
Module start 'content' 0.01360.7975 781.5156462.1484
Module end 'content' 0.81120.0015 1,243.66418.1563
Script end 0.8127  1,251.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5100160.0003
Check MTime0.00140.1744160.0001
Mysql Total
Database connection0.00120.143410.0012
Mysqli_queries0.761593.6974540.0141
Looping result0.00130.1540520.0000
Template Total0.771194.920.3856
Template load0.00300.366120.0015
Template processing0.768194.509520.3841
Template load and register function0.00020.028210.0002
states
state_id_array0.00120.150110.0012
state_identifier_array0.00240.300120.0012
Override
Cache load0.00260.3157160.0002
Sytem overhead
Fetch class attribute can translate value0.00090.108220.0004
Fetch class attribute name0.00310.387020.0016
XML
Image XML parsing0.00020.029320.0001
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00080.0995100.0001
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs