0

I wan't to make setting for body so i will be able to edit my body from admin panel. I can do it by SQL but i wan't to ask you is it bad for server performance, That on every visit huge text from SQL will be requested

Or maybe it's better to leave body in index.php and edit with php

Actually my question is what is better for storing huge text that will be in use always SQL or TEXT(.php) file?

1 Answers1

0

I believe that using SQL should be just fine.

However, storing data in files and reading them when page is being loaded is surely faster then retrieving it from SQL.

If you want to save even more performance, use in-memory cache like APCu for example.

lot
  • 1,434
  • 18
  • 23