User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4010
  • *Latest: kuki78

  • *Total Posts: 15656
  • *Total Topics: 2322
  • *Online Today: 23
  • *Most Online: 157
(27 Aug 09, 03:54:53)
  • *Users: 0
  • *Guests: 16
  • *Total: 16

Author Topic: Cache more blocks.  (Read 960 times)

0 Members and 1 Guest are viewing this topic.

Offline nend

  • Newbie
  • *
  • Posts: 21
Cache more blocks.
« on: 10 Feb 10, 05:03:54 »
I know it is possible but will this be a part of the system in the future?

I don't see why html and script blocks are not cached already. Their output will never change unless edited.

PHP on the other hand changes but you have two options there. Cache the PHP code or cache the PHP output. If you cache the code you possibly eliminate a db request unless the code request one. If you cache the output you eliminate a db request all together.

Is this being looked into or at least considered?

Thanks in advance.  O0

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5224
  • Gender: Female
Re: Cache more blocks.
« Reply #1 on: 10 Feb 10, 10:52:31 »
I don't see why html and script blocks are not cached already. Their output will never change unless edited.
what you want with a cache of html code?

Quote
Cache the PHP code or cache the PHP output. If you cache the code you possibly eliminate a db request unless the code request one. If you cache the output you eliminate a db request all together.
A output cache is't possible for the most blocks, because the content is user specific (isRead/notRead etc.) so we use a dbquery caching.

Fel
Many are stubborn in relation to the path, a few in relation to the target.