Datastore Caching and you

dark_hunter

New Member
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:
// ****** 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:
// ****** 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.


Notes:
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.
 

virus

New Member
this will be make ressource big belive me coz i realy try this tutorial and i get warning to my host but after i set to normal my resource down to a few minutes...
 

dark_hunter

New Member
virus said:
this will be make ressource big belive me coz i realy try this tutorial and i get warning to my host but after i set to normal my resource down to a few minutes...
You should only use it if you have a VPS. Or dedicated.
 
Top