No announcement yet.

Datastore Caching and you.

This topic is closed.
This is a sticky topic.
  • Time
  • Show
Clear All
new posts

  • Datastore Caching and you.

    Before you read on, this document is about enabling datastore caching it has NOTHING to do with enabling the datastore itself. The datastore itself is always on and a vital part of the vBulletin system.

    Datastore Caching and you.

    The datastore has been around since vBulletin 3, and its primary use is caching all of the important data in one place to avoid multiple queries. This has greatly improved performance in vBulletin for the long run. As of vBulletin 3.5 we have improved the datastore even further to avoid even having to query the database to get it. There are several types of caching for the datastore. Most often people will likely use the file based method. It is the simplest and should work for almost everyone. The other methods, eAccelerator and Memcached require third party programs, if you are not sure if you have them contact your host. Here I show you the code and how to setup datastore caching for the File based method.

    Open up your config.php file and find
    PHP Code:
    // ****** MySQLI OPTIONS *****
    // PHP can be instructed to set connection paramaters by reading from the
    // file named in 'ini_file'. Please use a full path to the file.
    // Used to set the connection's default character set
    // Example:
    // $config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini';
    $config['Mysqli']['ini_file'] = ''
    And add below.

    PHP Code:
    // ****** CACHE OPTIONS *****
    // here we can set differnt datastore cache options
    // vB_Datastore_Memcached
    // vB_Datastore_Filecache
    $config['Datastore']['class'] = 'vB_Datastore_Filecache'
    Now open your ftp program, or open a shell to your server, locate the /includes/datastore_cache.php file and chmod it to 777. Now after you have chmoded the file, save your config.php file and you should be ready to go.

    As of vBulletin 3.5.0 beta 3 eAcclerator support was added
    As of vBulletin 3.5.0 beta 4 TurckMMCache was droped
    As of vBulletin 3.5.0 Release Candidate 2 eAcclerator support was dropped.
    Last edited by Zachery; Thu 22 Sep '05, 10:41am.

  • #2
    This is an notice to anyone who has subscribed, this post has been updated.


    Related Topics