Results 1 to 4 of 4

Thread: How to PHP cache for on the fly elements?

  1. #1
    Join Date
    Jul 2012

    How to PHP cache for on the fly elements?

    Hello guys,

    I want to implement a caching system for my web sites. However, In my website, there are many elements created on the fly by jQuery, so what can I do for this?


  2. #2
    Join Date
    Jul 2003
    Lansdale, PA
    Are you talking about caching on the server, or on the browser?

    What kinds of items are you looking to cache? Images, css, and js files are often cached by the browser to improve load time.


  3. #3
    Join Date
    Mar 2011
    Since JavaScript is processed by the user's browser, you can't cache it's results on the server. You can only cache the script itself along with the rest of the document.
    Rick Trethewey
    Rainbo Design

  4. #4
    Join Date
    Aug 2004
    If it's a question of caching PHP script outputs that result from jQuery calls (e.g. AJAX calls?), as far as the server-side of things goes, there's no difference between those calls and a "regular" web page call -- they're all HTTP requests. So presumably any PHP caching implementation would work as well (or poorly) for the jQuery AJAX requests as for other HTTP requests.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles