Forums / Install & configuration / Multi siteaccess and notification

Multi siteaccess and notification

Author Message

Rémy Feuvrier

Thursday 14 April 2011 7:04:23 am

Hi,

Is there a clean way to use notification cronjob with multiple siteaccess ?

Trying to explain our problem.

We've got one eZ instance with a dozen of siteaccess. Each siteaccess have a domain or a subdomain declared in site.ini override and associated to a node.

First, I put runcronjobs.php in cron without anything. It take the default siteaccess to generate url, wich is not what we want. So I made a cron per siteaccess with -s option. Sounds good, but in fact it's not. -s option doesn't care where the new element is published.

Structure:
- Root
- - site1 (www.site.com)
- - site2 (www.site2.com)
- - site3 (aaa.site2.com)
-...

Cron:
1,31 * * * * www-data cd $EZPUBLISHROOT; $PHP runcronjobs.php -q -s site1 notification
2,32 * * * * www-data cd $EZPUBLISHROOT; $PHP runcronjobs.php -q -s site2 notification
3,33 * * * * www-data cd $EZPUBLISHROOT; $PHP runcronjobs.php -q -s site3 notification
...

Notification is just a cronpart where there's only notification.php ;)

If I put an object in site2 at 2:50, notification will be generated by the site1 cronjob which will send emails with wrong url.
In the same way, if I published an object at 3:31 (+seconds) in site1, notification will be generated with site2 cronjob !

So, is there a workaround to use notification like that or we have to made another notification script that respond to our need ?

Thanks for your answers or ideas ;)

eZ debug

Timing: Jan 17 2025 23:47:35
Script start
Timing: Jan 17 2025 23:47:35
Module start 'content'
Timing: Jan 17 2025 23:47:36
Module end 'content'
Timing: Jan 17 2025 23:47:36
Script end

Main resources:

Total runtime0.8498 sec
Peak memory usage4,096.0000 KB
Database Queries183

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 588.9531180.8281
Module start 'content' 0.00910.7205 769.7813419.1484
Module end 'content' 0.72950.1202 1,188.9297333.7891
Script end 0.8497  1,522.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5054210.0002
Check MTime0.00150.1801210.0001
Mysql Total
Database connection0.00130.151710.0013
Mysqli_queries0.788592.79371830.0043
Looping result0.00170.19711810.0000
Template Total0.817596.220.4088
Template load0.00230.265720.0011
Template processing0.815395.941320.4076
Template load and register function0.00020.023310.0002
states
state_id_array0.00050.059110.0005
state_identifier_array0.00100.122420.0005
Override
Cache load0.00180.2148290.0001
Sytem overhead
Fetch class attribute can translate value0.00090.110920.0005
Fetch class attribute name0.00060.074410.0006
XML
Image XML parsing0.00030.032720.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00170.2021210.0001
String conversion0.00000.000830.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0004 secs