Cache Full Page

  • Anonymous - 2004-02-13

    Hello, hmm I have a little (big) Problem.
    I dont know how to cache a full page (the content) with mmcache.
    Why should I use this command?
    mmcache_cache_page($_SERVER['PHP_SELF'].'?GET='.serialize($_GET), 30);
    When is the cached file used??

    Problem: Ich have a huge home.php and it last a long time to parse this page. So I wantt to cache the whole page BUT ONLY when the user is not logged on. The mmchache command is in a if_then loop and only executed when the user isnt logged in. But under which cicumstances is this cached Version used? And how can I tell mmcache not to use this Version on logged-in Users?

    • David

      David - 2004-02-17

      It's used if the cached version is not older than 30 secs
      Like you said, you'll have to check at the beginning of your script whenever the user is logged on or not...


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks