News: TinyPortal Release Schedule. Please read this update for More Info.

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

October 14, 2019, 07:25:32 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3756
  • Latest: Ocean
Stats
  • Total Posts: 189079
  • Total Topics: 20763
  • Online Today: 58
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 50
Total: 50

Author Topic: Store pre-includes in php array instead of in database  (Read 3140 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.