Around cache

Author Message

Adolfo Barragán

Wednesday 22 January 2003 1:09:06 am

How can I disabled cache only for certains part (nodes, branchs or content_class) of my site?

For example: I don't want caching news or forum, but I want caching articles.

Thanks in advance
Adolfo Barragán

Tony Wood

Wednesday 22 January 2003 11:45:32 am

If you are going to use hosts, take a look at
http://developer.ez.no/bug/bugview/1790/ and http://developer.ez.no/forum/message/13492/ as host element lookup is bugged...
Then try
[SiteAccessSettings]
MatchOrder=host

HostMatchType=element
HostMatchElement=0

This will pull out the admin in admin.mydomain.com

Once you sort that virtual hosts should work fine assuming apache and bind stuff is sorted.

Tony

> > How can I disabled cache only for certains part (nodes,
> > branchs or content_class) of my site?
> >
> > For example: I don't want caching news or forum, but I
> want
> > caching articles.
>
> Do you use virtual hosts? If so, the sollution might be
> (dont use vh, i'm guessing):
>
> use news.yourdomain.com and forum.yourdomain.com for news
> and forum.
>
> Change your siteaccesssettings:
>
> [SiteAccessSettings]
> MatchOrder=host
> HostMatchRegexp=^(.+\..+)\.yourdomain\.com
> HostMatchSubtextPost=\.yourdomain\.com
>
> Add into
> settings/siteaccess/news/site.ini.append and
> settings/siteaccess/forum/site.ini.append the right cache
> settings. Site.ini.php contains the default access settings
> (=settings voor the www subdomain)
>
> If you don't use vh, try to use the IndexMatchRegexp for
> index.php, index_admin.php, index_news.php,
> index_forum.php.
>
> See:
> http://ezwiki.blanko.info/index.php/Several%20sites%20with%20one%20installation%20%283.x%29

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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 05:17:58
Script start
Timing: Jan 18 2025 05:17:58
Module start 'layout'
Timing: Jan 18 2025 05:17:58
Module start 'content'
Timing: Jan 18 2025 05:17:59
Module end 'content'
Timing: Jan 18 2025 05:17:59
Script end

Main resources:

Total runtime0.7663 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.0053 591.4609152.6250
Module start 'layout' 0.00530.0027 744.085939.4453
Module start 'content' 0.00800.7568 783.5313536.6641
Module end 'content' 0.76480.0014 1,320.195312.1797
Script end 0.7662  1,332.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4949160.0002
Check MTime0.00130.1723160.0001
Mysql Total
Database connection0.00050.068910.0005
Mysqli_queries0.711992.9121540.0132
Looping result0.00060.0764520.0000
Template Total0.733695.720.3668
Template load0.00220.285220.0011
Template processing0.731495.447820.3657
Template load and register function0.00020.020610.0002
states
state_id_array0.00130.167410.0013
state_identifier_array0.00140.179620.0007
Override
Cache load0.00190.2480510.0000
Sytem overhead
Fetch class attribute can translate value0.00080.098220.0004
Fetch class attribute name0.00170.215830.0006
XML
Image XML parsing0.00060.081120.0003
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00070.0911160.0000
String conversion0.00000.000940.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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs