Forums / Extensions / eZ Find / Cache and EZFind

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

*/ ?>

eZ debug

Timing: Jan 18 2025 02:03:09
Script start
Timing: Jan 18 2025 02:03:09
Module start 'content'
Timing: Jan 18 2025 02:03:09
Module end 'content'
Timing: Jan 18 2025 02:03:10
Script end

Main resources:

Total runtime0.6896 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.7344180.7891
Module start 'content' 0.00760.4982 768.5234628.2422
Module end 'content' 0.50580.1837 1,396.7656337.3750
Script end 0.6895  1,734.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.6115210.0002
Check MTime0.00160.2367210.0001
Mysql Total
Database connection0.00090.127410.0009
Mysqli_queries0.594786.23502030.0029
Looping result0.00290.42692010.0000
Template Total0.660095.720.3300
Template load0.00250.359620.0012
Template processing0.657595.351720.3288
Template load and register function0.00020.026810.0002
states
state_id_array0.00090.129110.0009
state_identifier_array0.00100.142320.0005
Override
Cache load0.00210.3048210.0001
Sytem overhead
Fetch class attribute can translate value0.00190.274250.0004
Fetch class attribute name0.00100.152360.0002
XML
Image XML parsing0.00170.242950.0003
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.01151.6716340.0003
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs