本文整理匯總了PHP中cache::domain_cache方法的典型用法代碼示例。如果您正苦於以下問題:PHP cache::domain_cache方法的具體用法?PHP cache::domain_cache怎麽用?PHP cache::domain_cache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cache
的用法示例。
在下文中一共展示了cache::domain_cache方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: extract
function makecache_action()
{
set_time_limit(200);
extract($_POST);
include LIB_PATH . "cache.class.php";
$cacheclass = new cache("../plus/", $this->obj);
if (@in_array("1", $cache)) {
$makecache = $cacheclass->city_cache("city.cache.php");
}
if (@in_array("2", $cache)) {
$makecache = $cacheclass->industry_cache("industry.cache.php");
}
if (@in_array("3", $cache)) {
$makecache = $cacheclass->job_cache("job.cache.php");
}
if (@in_array("4", $cache)) {
$makecache = $cacheclass->user_cache("user.cache.php");
}
if (@in_array("5", $cache)) {
$makecache = $cacheclass->com_cache("com.cache.php");
}
if (@in_array("6", $cache)) {
$makecache = $cacheclass->menu_cache("menu.cache.php");
}
if (@in_array("7", $cache)) {
$makecache = $this->tpl->clear_all_cache();
}
if (@in_array("8", $cache)) {
$makecache = $cacheclass->seo_cache("seo.cache.php");
}
if (@in_array("9", $cache)) {
$makecache = $cacheclass->domain_cache("domain_cache.php");
}
if (@in_array("10", $cache)) {
$makecache = $cacheclass->keyword_cache("keyword.cache.php");
}
if (@in_array("11", $cache)) {
$makecache = $cacheclass->link_cache("link.cache.php");
}
if (@in_array("12", $cache)) {
$makecache = $cacheclass->group_cache("group.cache.php");
}
if ($makecache) {
$this->obj->ACT_layer_msg("生成(ID:{$makecache})成功!", 9, "index.php?m=cache&c=cache", 2, 1);
} else {
$this->obj->ACT_layer_msg("生成(ID:{$makecache})失敗!", 8, "index.php?m=cache&c=cache");
}
}
示例2: cache
function DomainArr_action()
{
include LIB_PATH . "cache.class.php";
$cacheclass = new cache(PLUS_PATH, $this->obj);
$makecache = $cacheclass->domain_cache("domain_cache.php");
}
示例3: extract
function makecache_action()
{
set_time_limit(200);
extract($_POST);
include LIB_PATH . "cache.class.php";
$cacheclass = new cache(PLUS_PATH, $this->obj);
if (@in_array("1", $cache)) {
$makecache = $cacheclass->city_cache("city.cache.php");
}
if (@in_array("2", $cache)) {
$makecache = $cacheclass->industry_cache("industry.cache.php");
}
if (@in_array("3", $cache)) {
$makecache = $cacheclass->job_cache("job.cache.php");
}
if (@in_array("4", $cache)) {
$makecache = $cacheclass->user_cache("user.cache.php");
}
if (@in_array("5", $cache)) {
$makecache = $cacheclass->com_cache("com.cache.php");
}
if (@in_array("6", $cache)) {
$makecache = $cacheclass->menu_cache("menu.cache.php");
}
if (@in_array("7", $cache)) {
$makecache = $this->del_dir("../data/templates_c", 1);
$makecache = $this->del_dir("../data/cache", 1);
}
if (@in_array("8", $cache)) {
$makecache = $cacheclass->seo_cache("seo.cache.php");
}
if (@in_array("9", $cache)) {
$makecache = $cacheclass->domain_cache("domain_cache.php");
}
if (@in_array("10", $cache)) {
$makecache = $cacheclass->keyword_cache("keyword.cache.php");
}
if (@in_array("11", $cache)) {
$makecache = $cacheclass->link_cache("link.cache.php");
}
if (@in_array("12", $cache)) {
$makecache = $cacheclass->group_cache("group.cache.php");
}
if (@in_array('13', $cache)) {
$makecache = $cacheclass->desc_cache("desc.cache.php");
}
if (@in_array('14', $cache)) {
include_once "model/model/advertise_class.php";
$adver = new advertise($this->obj);
$adver->model_ad_arr_action();
}
$makecache = $cacheclass->database_cache("dbstruct.cache.php");
if ($makecache) {
$this->ACT_layer_msg("生成(ID:{$makecache})成功!", 9, "index.php?m=cache&c=cache", 2, 1);
} else {
$this->ACT_layer_msg("生成(ID:{$makecache})失敗!", 8, "index.php?m=cache&c=cache");
}
}