PHP Classes

HTML generation and Memcache

Recommend this page to a friend!

      PHP Preemptive Cache  >  PHP Preemptive Cache package blog  >  Improving Your PHP Co...  >  All threads  >  HTML generation and Memcache  >  (Un) Subscribe thread alerts  
Subject:HTML generation and Memcache
Summary:HTML generation and Memcache
Messages:2
Author:Keimpe de Jong
Date:2015-09-15 11:54:42
 

  1. HTML generation and Memcache   Reply   Report abuse  
Picture of Keimpe de Jong Keimpe de Jong - 2015-09-15 11:54:42
For a menu that is created from a DB, it might be better to generate static daily html.

Also Memcache is a good way to store frequently used db entries that are mostly read and not written to. This reduces disk reads.
Get from memcache
Set to memcache and write to DB.

  2. Re: HTML generation and Memcache   Reply   Report abuse  
Picture of Joseluis Laso Joseluis Laso - 2015-09-15 12:41:24 - In reply to message 1 from Keimpe de Jong
You are right, Keimpe.

For generating a menu from DB I'll choose generate static html or precached content with twig or something like that.

Relating with memcached you are right as well. But I pretended to offer a pure PHP native solution for that problem.

Thank you for your comment.

 
For more information send a message to info at phpclasses dot org.