{How to add Page caching on php website}

Discussion in 'PHP' started by Sunil Keshari, Dec 6, 2012.

  1. #1
    Some one please guide me how to add page caching on php website.
    the site is based on CMS.
    its an article website.
    the profile.php consuming more CPU usage.
    hosting company suggest me to add page caching for profile.php.
    Some one guide me how to add these
    for my website it was hosted on shared server.
    Linux based webserver.
     
    Solved! View solution.
    Sunil Keshari, Dec 6, 2012 IP
  2. #2
    if profile.php is using more resources than needed you should look into the queries and check out if you can make them more efficient.

    If that doesn't work you can save the outcome to a file and update that after xxx seconds example for this is

    http://www.jongales.com/blog/2009/02/18/simple-file-based-php-cache-class/

    If you need anyone to make this work for you, PM me! :)
     
    EricBruggema, Dec 6, 2012 IP
  3. desingshop98

    desingshop98 Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Eric -- thanks for the link ...
     
    desingshop98, Dec 7, 2012 IP