没有memcache支持的phpfox能否正常工作?

没有memcache支持的phpfox能否正常工作?,php,phpfox,Php,Phpfox,有没有办法在没有memcache服务的情况下使用Phpfox?因为我使用的是hostgator共享服务器,而作为不提供任何memcache服务的共享服务器,它只能在专用服务器中使用 我使用的Phpfox1.5以前托管在amazon服务器上,在那里可以使用mecache服务,但对我来说非常昂贵,所以我想将我的站点从amazon更改为hostgator托管服务 致命错误:在第64行的/home/latisse/public_html/spicypeeps.com/include/library/ph

有没有办法在没有memcache服务的情况下使用Phpfox?因为我使用的是hostgator共享服务器,而作为不提供任何memcache服务的共享服务器,它只能在专用服务器中使用

我使用的Phpfox1.5以前托管在amazon服务器上,在那里可以使用mecache服务,但对我来说非常昂贵,所以我想将我的站点从amazon更改为hostgator托管服务

致命错误:在第64行的/home/latisse/public_html/spicypeeps.com/include/library/phpfox/cache/storage/Memcache.Class.php中找不到类“Memcache”


当然,只需包含一个顶部带有以下内容的文件:

<?php
// Dummy Memcache for a development environment where Memcache is not installed. Part of mmvc library, https://github.com/kajala/mmvc
// Dependencies: none

//if ( defined('MEMCACHE_COMPRESSED') )
//  die( "Memcache seems to be already installed, MemcacheDummy.php should never be included in this case\n" );

define( 'MEMCACHE_COMPRESSED', 1234 ); // dummy value

/**
 * Dummy Memcache class for a development environment where Memcache is not installed.
 * Note that this class does not do ANYTHING and it is only a convenience for 
 * the development environment and should never be used in production server.
 */
class Memcache
{
    function __construct()
    {
    }

    function connect( $host, $port )
    {
        assert( is_string($host) );
        assert( is_numeric($port) );
        return true;
    }

    function set( $key, $obj, $compressed=false, $expires=0 )
    {
        assert( is_string($key) );
        assert( $compressed === false || $compressed == MEMCACHE_COMPRESSED );
        assert( is_numeric($expires) );
        return true;
    }

    function get( $key )
    {
        assert( is_string($key) || is_array($key) );
        return false;
    }
}

?>


注意:代码不是我的,它是根据BSD许可证授权的。原作者:

我需要生产环境此帮助我可以在生产环境中使用,不过您可能只需要安装Memcache。我没有机会安装Memcache及其共享主机hostgator帐户,他告诉我他们不能为共享主机提供Memcache服务?然后您可以使用我提供的类。