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.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

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

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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