1
karedokx
Module Cache made the load time increasing
  • 2005/1/29 13:42

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


i'm trying to implement the module cache. i use the php code mith provided in the theme file:

<{php}>echo "Loaded in ".round(($GLOBALS['xoopsLogger']->dumpTime()), 3)." seconds | ".count($GLOBALS['xoopsLogger']->queries)." queries";<{/php}>


before the module cache implementation, i have:
Loaded in 0.33 seconds | 36 queries

after i set the module cache, i got:
Loaded in 3.029 seconds | 31 queries

why the loaded time is increasing instead? is it something wrong with loaded time code? as the no of queries is decreasing. the no of query which really matter in this case, am i correct?

one further question, regarding the module cache feature: will it be always work? or is it depending on the programmer whether he implement it or not and it depends on how 'good' he code it (as sometime it won't work if we don't code it good enough)?

thanks in advance!

2
karedokx
Re: Module Cache made the load time increasing
  • 2005/1/30 9:18

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


bump.

3
Mithrandir
Re: Module Cache made the load time increasing

Quote:

karedokx wrote:
why the loaded time is increasing instead? is it something wrong with loaded time code? as the no of queries is decreasing. the no of query which really matter in this case, am i correct?

It sure sounds weird. Is it consistently at 3 seconds instead of .3?

Quote:

one further question, regarding the module cache feature: will it be always work? or is it depending on the programmer whether he implement it or not and it depends on how 'good' he code it (as sometime it won't work if we don't code it good enough)?

thanks in advance!

It usually works, but is dependant on the module programmer. As described in this thread: Module-wide caching - Important development, a module developer can render the caching feature useless in his or her module. However, since the query count decreases, it seems to work - unless the query count decrease is due to blocks being cached.

4
karedokx
Re: Module Cache made the load time increasing
  • 2005/1/30 9:55

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


yes, it is consistently on the 3 seconds. performance wise i don't see it decreasing. i'm not sure either...

i think i ever saw this kind of issue reported by other users somewhere. have searched it but couldn't find it.

5
jdseymour
Re: Module Cache made the load time increasing

MySQL debug should help you pin down what is lagging. May want to enable that then check your page.

Login

Who's Online

508 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 508


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits