News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

August 21, 2019, 05:36:59 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3751
  • Latest: tom888
Stats
  • Total Posts: 188690
  • Total Topics: 20745
  • Online Today: 41
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 24
Total: 24

Author Topic: Store pre-includes in php array instead of in database  (Read 3090 times)

0 Members and 1 Guest are viewing this topic.

Offline forumside

  • Jr. Member
  • **
  • Posts: 6
    • ForumSide.com free SMF forums with TinyPortal
Store pre-includes in php array instead of in database
« on: June 06, 2016, 03:22:01 PM »
I think it will be better to store TP integrate_pre_include all include files list not in smf settings table, but in simple php array. So server will do less mysql queries and fetching all settings query will take less memory.

Offline illori

  • Administrator
  • *
  • Posts: 2051
Re: Store pre-includes in php array instead of in database
« Reply #1 on: June 06, 2016, 03:25:29 PM »
why should we stop using SMF's hook system? this is why it was made.

Offline forumside

  • Jr. Member
  • **
  • Posts: 6
    • ForumSide.com free SMF forums with TinyPortal
Re: Store pre-includes in php array instead of in database
« Reply #2 on: June 06, 2016, 03:55:33 PM »
Ok, I understand SMF did their hooks for easy integration of various mods and bridges.
But in some cases it is too general and not always optimal way.
So I think it this specific point it will be much better to do it different way.

Offline illori

  • Administrator
  • *
  • Posts: 2051
Re: Store pre-includes in php array instead of in database
« Reply #3 on: June 06, 2016, 04:23:52 PM »
well at this time there are no plans to change from how they are done.