Cache and EZFind

Author Message

Bryan Ruiz

Tuesday 27 January 2009 7:35:36 am

I am using a cache server that makes a cached copy of the ezpublish site which has a "time to live" and an api that can be called to update the cache. There is a 7 minute lag that these cache servers need to update.

I am having a hard time visualizing what will happen when this mechanism is combined with ezfind. Are there any implications that a set of cache servers would cause when, lets say, a page gets edited and the cache needs to be updated.

What about if I run updatesearchindexsolr.php as a cron every 5 minutes? Or maybe this wouldnt be a good idea because if its ran every 5 minutes, it may not complete in time, so lets say 20 minutes?

Thanks,
Bryan Ruiz

Jérôme Vieilledent

Saturday 21 February 2009 5:10:54 am

Hi Bryan

As far as I know, eZFind (at least the latest 2.0 version) updates its index each time you publish/delete an object. So you don't have to run <i>updatesearchindexsolr.php</i> as a CRON...

Emmanuel Courmont

Sunday 05 April 2009 2:05:23 pm

Hi Bryan,

You only need to run a cron job if the indexing is delayed. You can find this setting in site.ini

[SearchSettings]
DelayedIndexing=enabled

The indexcontent.php is part of the cronjob by default. See cronjob.ini

[CronjobSettings]
ScriptDirectories[]=cronjobs
...
Scripts[]=indexcontent.php

Geoff Bentley

Wednesday 08 April 2009 9:52:30 pm

The cronjobs have only recently been fixed in the SVN repo of eZ Find, and have been split into two - <i>ezfindexcontent.php</i> and <i>ezfoptimizeindex.php</i>. This allows the more server-intensive optimization to be actioned once or twice a day.

<i>settings/cronjob.ini.append.php</i> has also been added to ezfind - if you are using the stable 2.0 version you will need to create this yourself and add to the default cronjob script list or to the CronjobPart-frequent, e.g:

<?php /*

[CronjobSettings]
ExtensionDirectories[]=ezfind

Scripts[]=ezfindexcontent.php

*/ ?>

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

Main resources:

Total runtime0.6456 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9375152.6250
Module start 'layout' 0.00520.0038 740.562539.4453
Module start 'content' 0.00900.6350 780.0078627.1641
Module end 'content' 0.64400.0015 1,407.171912.1641
Script end 0.6455  1,419.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4848160.0002
Check MTime0.00140.2107160.0001
Mysql Total
Database connection0.00080.123510.0008
Mysqli_queries0.592891.8268660.0090
Looping result0.00060.0961640.0000
Template Total0.609794.420.3049
Template load0.00210.324720.0010
Template processing0.607694.120220.3038
Template load and register function0.00010.017710.0001
states
state_id_array0.00110.173710.0011
state_identifier_array0.00150.230820.0007
Override
Cache load0.00180.2726210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.080240.0001
Fetch class attribute name0.00100.156760.0002
XML
Image XML parsing0.00250.389740.0006
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00120.1889230.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
4content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs