Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2006
    Posts
    213
    Plugin Contributions
    0

    Default Page Parse Time Log

    I am trying to check the parse time when my customers access the site pages. I turned on the "display parse time" and "store parse time data" options in admin and the log file is present in a temp folder. But it only seems to log parse times for ADMIN pages and NOT for the STORE pages. Any ideas??

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Page Parse Time Log

    Parse times indicate the server speed to prepare the page and have nothing to do with your customers, their browser or connection. Only the time it takes your server to assemble your page ready to send.

    So the logging is really not beneficial as you can record 10 or so page parses at intervals in a day and this will be the same as for your customers
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2006
    Posts
    213
    Plugin Contributions
    0

    Default Re: Page Parse Time Log

    I see your point, but on the other hand, the time it takes the server to assemble the page will depend on the complexity of the page and the number of SQL queries it has to make and this can vary between pages.
    It would be nice if we could really measure what kind of response times our viewers are seeing but that would have too many variables which we can't control.
    But I still find it odd that the parse log records ONLY admin pages.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Page Parse Time Log

    The parse log for the storefront is handled by the footer module code, so if your customized code has altered or bypassed that, you won't get the logging.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jul 2006
    Posts
    213
    Plugin Contributions
    0

    Default Re: Page Parse Time Log

    Quote Originally Posted by DrByte View Post
    The parse log for the storefront is handled by the footer module code, so if your customized code has altered or bypassed that, you won't get the logging.
    That's what I really don't understand. I am using the Google Analytics mod from Andrew and I thought it might interfere so I went back and checked the code. The Google code is called at the end of tpl_main_page.php, not tpl_footer.php.
    The parse time, etc (including the write to log file) is supplied by modules/footer.php. OK This is 'required' in mytemplate/common/tpl_footer.php. The tpl_footer code ALSO displays a banner ad, the IP address and the copyright notice. ALL of these things including the parse time are shown ON THE PAGE. But the parse time from the admin pages is being stored in the log file and the parse time from the store pages is NOT.

    What am I missing?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Page Parse Time Log

    Well, the code that "does" it is functionally identical in the storefront and the admin, and it's nothing extra special in the code:
    Code:
    if (STORE_PAGE_PARSE_TIME == 'true') {
      error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' - ' . $_SERVER['REQUEST_URI'] . ' (' . $parse_time . 's)' . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
    }
    So, if one isn't doing it, then it's probably not getting called, due to an override or something. Most often any failure with logging is due to a permissions problem, but if the admin can write fine then permissions is not likely the issue. Thus it suggests that you have an override of the footer module that doesn't have that code in it.

    What do you have configured for the Parse Time Log filename in your admin? Is it an absolute path name or is it a relative path, meaning the logging is being done to different destinations based on admin vs storefront?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jul 2006
    Posts
    213
    Plugin Contributions
    0

    Default Re: Page Parse Time Log

    What do you have configured for the Parse Time Log filename in your admin? Is it an absolute path name or is it a relative path, meaning the logging is being done to different destinations based on admin vs storefront?
    that was it...I was using a path relative to the admin folder. I changed it to an absolute path and it works

    Thank you

 

 

Similar Threads

  1. Replies: 4
    Last Post: 30 Apr 2009, 03:01 AM
  2. Replies: 1
    Last Post: 13 Jan 2009, 12:05 PM
  3. first page parse time high
    By hitch in forum General Questions
    Replies: 3
    Last Post: 26 Jan 2008, 10:32 AM
  4. Replies: 4
    Last Post: 29 Sep 2006, 02:24 AM
  5. Parse Time Log file not set - causing error message
    By Goshawk in forum General Questions
    Replies: 2
    Last Post: 22 Aug 2006, 12:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg