Beispiel #1
0
function set_cache($query, $content, $time)
{
    if (!MAD_ENABLE_CACHE) {
        return false;
    }
    if (!php_cache_compatibility_check()) {
        return false;
    }
    $query = md5($query);
    require_once 'modules/cache/src/cache.php';
    require 'functions/cache.init.php';
    if ($cache->set($query, $content, $ttl = $time)) {
        return true;
    }
    return false;
}
Beispiel #2
0
                            <p>This is the directory where mAdserve will store creatives for ad-serving. In order to
                                continue with installation, please make sure that the directory
                                <strong><?php 
        echo MAD_PATH;
        ?>
/data/creative/</strong> is writeable. (eg. CHMOD 777)
                            </p>
                        </div>

                    </div>
                <?php 
    }
    ?>

                <?php 
    if (!php_cache_compatibility_check()) {
        ?>
                    <div class="widget">

                        <div class="widget-header">
                            <span class="icon-x-alt"></span>

                            <h3>Recommended: PHP Version 5.3+</h3>
                        </div>

                        <div class="widget-content">
                            <p>mAdserve has detected that your PHP version is lower than 5.3. If you would like to
                                enable caching to speed up your mAdserve ad server, you'll need to have PHP 5.3 or
                                greater installed.</p>
                        </div>