Current time: 05-24-2012, 03:56 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] templates not cached at startup in some pages [C-Michael83]
11-06-2008, 09:42 AM
Post: #1
[F] templates not cached at startup in some pages [C-Michael83]
There are templates not cached at startup in some page:

search->getnew: search_orderarrow not cached at startup
search->getdaily: search_orderarrow not cached at startup
showthread (with a poll): showthread_poll_resultbit, showthread_poll_results not cached at atartup
member profile: member_profile_signature, member_profile_groupimage not cached at startup
modcp: modcp_modlogs_result not cached at startup
private->send: not cached at startup

i hope it helps Big Grin

if i find others i will report them Big Grin

..:: Luca ::..
» my italian personal blog:
[Image: ub.gif]
Visit this user's website Find all posts by this user
11-06-2008, 02:53 PM
Post: #2
RE: templates not cached at startup in some pages
We're not going to cache every-single template because most of them won't be used and they would just take up memory
Visit this user's website Find all posts by this user
11-06-2008, 03:27 PM (This post was last modified: 11-06-2008 03:28 PM by luke83.)
Post: #3
RE: templates not cached at startup in some pages
(11-06-2008 02:53 PM)Ryan Gordon Wrote:  We're not going to cache every-single template because most of them won't be used and they would just take up memory

ok.. it's right, but you can put an if statement to include them at startup when you know you'll need them Big Grin

in user profile in exemple you will do two extra query to db, it also take up memory and in user profile you could have more requests each time spend extra queries, simply you can check at user profile page start if you are showing a profile.. if yes you'll put the templates in the cache at startup Big Grin

..:: Luca ::..
» my italian personal blog:
[Image: ub.gif]
Visit this user's website Find all posts by this user
11-06-2008, 04:18 PM
Post: #4
RE: templates not cached at startup in some pages
(11-06-2008 03:27 PM)luke83 Wrote:  
(11-06-2008 02:53 PM)Ryan Gordon Wrote:  We're not going to cache every-single template because most of them won't be used and they would just take up memory

ok.. it's right, but you can put an if statement to include them at startup when you know you'll need them Big Grin

We're not going to be rewriting that until 1.6/2.0 since the 1.4 series is now only bug fix releases
Visit this user's website Find all posts by this user
11-06-2008, 04:19 PM (This post was last modified: 11-06-2008 04:20 PM by luke83.)
Post: #5
RE: templates not cached at startup in some pages
(11-06-2008 04:18 PM)Ryan Gordon Wrote:  We're not going to be rewriting that until 1.6/2.0 since the 1.4 series is now only bug fix releases

ok, thanks for information, good work!

have a nice day,
luke83

..:: Luca ::..
» my italian personal blog:
[Image: ub.gif]
Visit this user's website Find all posts by this user
11-10-2008, 05:41 PM
Post: #6
[F] templates not cached at startup in some pages
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication