Forums / General / Are there any documentation for eZ publish on the ezurl-table(urgent)

Are there any documentation for eZ publish on the ezurl-table(urgent)

Author Message

K259

Friday 01 April 2005 12:24:43 am

We're going to change all our email-addresses on our ez-site.We want to replace all @x.x.de addresses with @x.de.

I'm thinking of doing a replace in the mysql prompt in the ezurl table..where I replace all istances of @x.x.de with @x.de in the url field.

BUT, I see that there is a field in the ezurl table called original_url_md5 which is a hashed value. In which way is this field beeing used? Do I have to update this as well?

The original_url_md5 is a hashed value of $url-field, but I don't find any documentation on where this is beeing used, or which function this field has.

Does anyone know where there is documentation on this? The docs. I've found about the ezurl table are just a few lines and don't describe the original_url_md5 field.

Paul Forsyth

Friday 01 April 2005 12:29:50 am

You should update this. I quickly 'grep'ed around and found that value being used in a few places, and in the class:

kernel/common/ezurloperator.php

So to be safe update it :)

paul

K259

Friday 01 April 2005 12:38:47 am

Yup, I've seen it, but still don't know why this field is necessary.

In our eZ publish installation, this original_url_md5 field-value is registered in just 50% of the cases, <b>therefore I wondered...why do we need this original_url_md5 field?</b>

 function &create( $url )
00097     {
00098         $dateTime = time();
00099         $row = array(
00100             'id' => null,
00101             'url' => $url,
00102             'original_url_md5' => md5( $url ),
00103             'is_valid' => true,
00104             'last_checked' => 0,
00105             'created' => $dateTime,
00106             'modified' => $dateTime );
00107         return new eZURL( $row );
00108     }

and

function &urlByMD5( $urlMD5 )
00404     {
00405         $db =& eZDB::instance();
00406 
00407         $url = false;
00408         $checkURLQuery = "SELECT url FROM ezurl WHERE original_url_md5='$urlMD5'";
00409         $urlArray =& $db->arrayQuery( $checkURLQuery );
00410 
00411         if ( count( $urlArray ) == 1 )
00412         {
00413             $url =& $urlArray[0]['url'];
00414         }
00415         return $url;
00416     }

I will update the docs as soon as I get some more information about why we need this field. Why is it necessary to hash an url-value ;) hmm..

Kåre Køhler Høvik

Friday 01 April 2005 4:27:01 am

Hi

It's used by the the exturl operator ( registering extenral url's in templates ): http://www.ez.no/ez_publish/documentation/reference/template_operators/urls/exturl

Kåre Høvik

eZ debug

Timing: Jan 19 2025 09:54:49
Script start
Timing: Jan 19 2025 09:54:49
Module start 'content'
Timing: Jan 19 2025 09:54:50
Module end 'content'
Timing: Jan 19 2025 09:54:50
Script end

Main resources:

Total runtime0.8630 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.2188180.8047
Module start 'content' 0.00730.7065 770.0234585.3125
Module end 'content' 0.71380.1492 1,355.3359337.3438
Script end 0.8629  1,692.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4689210.0002
Check MTime0.00150.1707210.0001
Mysql Total
Database connection0.00090.099110.0009
Mysqli_queries0.778290.18021990.0039
Looping result0.00240.27241970.0000
Template Total0.826695.820.4133
Template load0.00200.232020.0010
Template processing0.824695.551120.4123
Template load and register function0.00020.028510.0002
states
state_id_array0.00080.098010.0008
state_identifier_array0.00150.176420.0008
Override
Cache load0.00160.1912240.0001
Sytem overhead
Fetch class attribute can translate value0.00140.168040.0004
Fetch class attribute name0.00190.222350.0004
XML
Image XML parsing0.00280.320140.0007
class_abstraction
Instantiating content class attribute0.00000.001650.0000
General
dbfile0.00891.0360260.0003
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs