Quantcast
Channel: Windows Cache Extension for PHP
Viewing all articles
Browse latest Browse all 197

Question about implementation of WinCache beyond basic install

$
0
0

 We have recently starting using WinCache and NTS PHP 5.2.17 for one of our very large sites.  Other than the basic installation, I'm trying to understand how this extension can be used further.

  •  Is there any sort of documentation for  use with PHPBB2?
  • Regarding the usercache, can someone clarify if it can be used for such a thing

Example:  Say a PHP page has the following query

 

 $sql = "SELECT f.forum_id, f.cat_id, f.forum_name, f.forum_desc, f.forum_status, f.forum_order, f.forum_posts, f.forum_last_post_id, f.forum_last_post_time, f.auth_view, f.forum_icon, f.forum_parent
                FROM ( " . FORUMS_TABLE . " f)
                
                ORDER BY f.cat_id, f.forum_order";

        if ( !($result = $db->sql_query($sql)) )
        {
            message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
        }


      $forum_data = $db->sql_fetchrowset($result);

Could the results of this query as $forum_data be added to the usercache?  If so, how could they be retrieved and be made available on future page loads?  We currently have the ability to write the result (it can be rather large) to a file (serialized) and read the file for the $forum_data on future page loads.

 Thank You


Viewing all articles
Browse latest Browse all 197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>