Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Structure for storing posts

  1. #11
    Join Date
    Mar 2011
    Location
    N 11 19' 0.0012 E 142 15' 0
    Posts
    1,512
    Thanks
    41
    Thanked 89 Times in 88 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by traq View Post
    query once and save (cache) the result.
    Save it where. I'm sorry but I don't understand the concept of "caching". Could you try and explain it a bit...

  2. #12
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 517 Times in 503 Posts
    Blog Entries
    5

    Default

    "Where" depends on how you handle it. MySQL does some caching internally. Memcache stores data on the server. You might cache dynamically generated html markup in .txt files, or session-specific data in your $_SESSION.

    I was going to link to the Wikipedia page, but it seems uncharacteristically akward and helpless.

    Basically, a "cache" is just an organized way to save data you plan on using again later, thereby saving time by only retrieving/ preparing it once and using it several (or many) times.

  3. #13
    Join Date
    Mar 2011
    Location
    N 11 19' 0.0012 E 142 15' 0
    Posts
    1,512
    Thanks
    41
    Thanked 89 Times in 88 Posts
    Blog Entries
    3

    Default

    Hmmmmm, thanks for that traq.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •