+ Reply to Thread
Results 1 to 15 of 22
Page 1 of 2
FirstFirst 1 2 ... LastLast

Thread: Datastore Cache functional yet?

  1. #1
    Member Zero Tolerance is on a distinguished road Zero Tolerance's Avatar
    Join Date
    Feb 2004
    Age
    22
    Posts
    95

    Datastore Cache functional yet?

    Maybe i'm blind, but i can't find the option to change the datastore cache to filesystem instead of the database, i see the datastore cache php file in my includes/ directory, however all the variables are blank, so is it functional yet? And if so where would i find how to modify it.

    Sorry if it's been answered already, i couldn't find anything using the search.

    - Zero Tolerance

  2. #2
    vBulletin-Germany.org Team Andreas will become famous soon enough Andreas will become famous soon enough Andreas's Avatar
    Join Date
    Feb 2004
    Location
    Germany
    Age
    30
    Posts
    1,717
    In config.php put

    Code:
    $config['Misc']['datastore'] = 'vB_Datastore_Filecache';
    Other possible Classes are vB_Datastore_Turck (for stroing Datastore as shared memory using Turck MMCache) and vB_Datastore_Memcached.

  3. #3
    Member Zero Tolerance is on a distinguished road Zero Tolerance's Avatar
    Join Date
    Feb 2004
    Age
    22
    Posts
    95
    Quote Originally Posted by KirbyDE
    In config.php put

    Code:
    $config['Misc']['datastore'] = 'vB_Datastore_Filecache';
    Other possible Classes are vB_Datastore_Turck (for stroing Datastore as shared memory using Turck MMCache) and vB_Datastore_Memcached.
    Yep, i'm blind - Thanks Kirby

    - Zero Tolerance

  4. #4
    vBulletin Team Zachery has a spectacular aura about Zachery has a spectacular aura about Zachery's Avatar
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Age
    24
    Posts
    40,637
    It is working as far as I can see, but for anyone who is trying this (not sure if this is actually 100% supported yet) You will need to chmod the file or make sure that IIS / apache has the rights to write and modifiy the file (for you windows users)
    Zachery Woods
    vBulletin Support Team
    Please do not PM me for support
    $this->hasFlavr() ? $nom->nom('nom') : $want->doNot()

  5. #5
    Senior Member RCA is on a distinguished road
    Join Date
    Mar 2003
    Posts
    133
    What about adding support for eAccelerator? Is same as mmturck, but with fixes and updates.

  6. #6
    Senior Member digitalpoint is on a distinguished road digitalpoint's Avatar
    Join Date
    Mar 2004
    Location
    San Diego, California
    Age
    34
    Posts
    453
    Another request for eAccelerator support from me.

  7. #7
    Senior Member nexialys has a spectacular aura about nexialys has a spectacular aura about nexialys's Avatar
    Join Date
    May 2004
    Location
    Québec city, Canada!
    Age
    38
    Posts
    2,050
    or just support for Zend would be good to... actually, it's the internal PHP Memcache...
    " keep your friends close, and your enemies even closer... " that's why you are in my Friends List...

  8. #8
    vBulletin Team Zachery has a spectacular aura about Zachery has a spectacular aura about Zachery's Avatar
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Age
    24
    Posts
    40,637
    Isn't eAccelerator a continued work of mmcache?
    Zachery Woods
    vBulletin Support Team
    Please do not PM me for support
    $this->hasFlavr() ? $nom->nom('nom') : $want->doNot()

  9. #9
    Senior Member digitalpoint is on a distinguished road digitalpoint's Avatar
    Join Date
    Mar 2004
    Location
    San Diego, California
    Age
    34
    Posts
    453
    Yep... MMCache is no longer developed (last release was November, 2003). eAccelerator picked up where MMCache stopped being developed.

  10. #10
    vBulletin Team Zachery has a spectacular aura about Zachery has a spectacular aura about Zachery's Avatar
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Age
    24
    Posts
    40,637
    Have you tried using the mmcache bit with eAccelerator?
    Zachery Woods
    vBulletin Support Team
    Please do not PM me for support
    $this->hasFlavr() ? $nom->nom('nom') : $want->doNot()

  11. #11
    Senior Member digitalpoint is on a distinguished road digitalpoint's Avatar
    Join Date
    Mar 2004
    Location
    San Diego, California
    Age
    34
    Posts
    453
    I haven't to be honest. I thought about it, but figured I would wait to see if someone else tries it first.

    Is the only thing that needs to be added the line in the config file?

  12. #12
    vBulletin Team Zachery has a spectacular aura about Zachery has a spectacular aura about Zachery's Avatar
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Age
    24
    Posts
    40,637
    Should be, I don't have a linux box as of yet to test anything out on, or I would have
    Zachery Woods
    vBulletin Support Team
    Please do not PM me for support
    $this->hasFlavr() ? $nom->nom('nom') : $want->doNot()

  13. #13
    Senior Member digitalpoint is on a distinguished road digitalpoint's Avatar
    Join Date
    Mar 2004
    Location
    San Diego, California
    Age
    34
    Posts
    453
    Nope...

    Code:
    Fatal error: Turck MMCache not installed in /includes/class_datastore.php on line 41

  14. #14
    Senior Member RCA is on a distinguished road
    Join Date
    Mar 2003
    Posts
    133
    Just changing variable names in class_datastore.php will probably work.

    mmcache_get -> eaccelerator_get
    mmcache_put -> eaccelerator_put

    etc etc

  15. #15
    Senior Member digitalpoint is on a distinguished road digitalpoint's Avatar
    Join Date
    Mar 2004
    Location
    San Diego, California
    Age
    34
    Posts
    453
    I went ahead and added a unique eAcclerator class to my class_datastore.php file for eAccelerator. Seems to work fine for me, so if vBulletin wants to work it into the distribution, that would be cool.

    PHP Code:
    // #############################################################################
    // eAccelerator

    /**
    * Class for fetching and initializing the vBulletin datastore from eAccelerator
    *
    * @package    vBulletin
    * @version    $Revision: 0.1 $
    * @date        $Date: 2005/06/12 13:14:18 $
    */
    class vB_Datastore_eAccelerator extends vB_Datastore
    {
        
    /**
        * Fetches the contents of the datastore from eAccelerator
        *
        * @param    array    Array of items to fetch from the datastore
        *
        * @return    void
        */
        
    function fetch($itemarray)
        {
            if (!
    function_exists('eaccelerator_get'))
            {
                
    trigger_error("eAccelerator not installed"E_USER_ERROR);
            }

            foreach (
    $this->defaultitems AS $item)
            {
                
    $this->do_fetch($item);
            }

            if (
    is_array($itemarray))
            {
                foreach (
    $itemarray AS $item)
                {
                    
    $this->do_fetch($item);
                }
            }

            
    $this->check_options();

            
    // set the version number variable
            
    $this->registry->versionnumber =& $this->registry->options['templateversion'];
        }

        
    /**
        * Fetches the data from shared memory and detects errors
        *
        * @param    string    title of the datastore item
        *
        * @return    void
        */
        
    function do_fetch($title)
        {
            
    $data eaccelerator_get($title);
            if (
    $data === null)
            { 
    // appears its not there, lets grab the data, lock the shared memory and put it in
                
    $data '';
                
    $dataitem $this->dbobject->query_first("
                    SELECT title, data FROM " 
    TABLE_PREFIX "datastore
                    WHERE title = '" 
    $this->dbobject->escape_string($title) ."'
                "
    );
                if (!empty(
    $dataitem['title']))
                {
                    
    $data =& $dataitem['data'];
                    
    $this->build($dataitem['title'], $dataitem['data']);
                }
            }
            
    $this->register($title$data);
        }

        
    /**
        * Updates the appropriate cache file
        *
        * @param    string    title of the datastore item
        *
        * @return    void
        */
        
    function build($title$data)
        {
            if (!
    function_exists('eaccelerator_put'))
            {
                
    trigger_error("eAccelerator not installed"E_USER_ERROR);
            }
            
    eaccelerator_lock($title);
            
    eaccelerator_put($title$data);
            
    eaccelerator_unlock($title);
        }


+ Reply to Thread
Page 1 of 2
FirstFirst 1 2 ... LastLast

Similar Threads

  1. vB banning feature not functional
    By lazserus in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 4
    Last Post: Tue 21st Dec '04, 11:32pm
  2. Profile Links Not Functional
    By Loxias in forum Pre-Beta Troubleshooting
    Replies: 2
    Last Post: Mon 5th Aug '02, 11:48pm
  3. Lightbulb on/off - Can someone explain the functional spec for this?
    By Phierce in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 4
    Last Post: Wed 3rd Oct '01, 5:41pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts