Форум SAPE.RU

Форум SAPE.RU (http://forum.sape.ru/index.php)
-   Разработка и сопровождение сайтов (http://forum.sape.ru/forumdisplay.php?f=29)
-   -   кусок динамики на wp super cache (http://forum.sape.ru/showthread.php?t=51062)

yolabiz 19.04.2010 18:58

кусок динамики на wp super cache
 
Приветствую всех :)

Имеем вордпресс + плагин супер каче, скажите пожалуйста что надо вставить в тему(themes) в место где я хочу выводить динамику - в нашем случае сапе.

так как сайты болле 10 тысяч страниц и не обновляются - то вариант установить маленький кусок времени кэширования не вариант. Стоит максимальное долгое время хранения кэша.

Добавлено через 4 часа 14 минут
ау живые есть?:)

How do I make certain parts of the page stay dynamic?

WP Super Cache retains the dynamic loading code of WP Cache but only works in "half on" mode.

There are two ways to do this, you can have functions that stay dynamic or you can include other files on every page load. To have a dynamic function in the cached PHP page use this syntax around the function:

<!--mfunc function_name( 'parameter', 'another_parameter' ) -->
<?php function_name( 'parameter', 'another_parameter' ) ?>
<!--/mfunc-->

The HTML comments around the mirrored PHP allow it to be executed in the static page. To include another file try this:

<!--mclude file.php-->
<?php include_once( ABSPATH . 'file.php' ); ?>
<!--/mclude-->

That will include file.php under the ABSPATH directory, which is the same as where your wp-config.php file is located.

вот тут сказано, в первом случае как сделать но я не рублю в кодинге
так чтоль должно быть ?

<!--mfunc function_name( 'parameter', 'another_parameter' ) -->
<?php
global $sape;
echo $sape->return_links();
?>
<!--/mfunc-->


Часовой пояс GMT +3, время: 03:52.

Работает на vBulletin® версия 3.8.7.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot
SAPE.RU — система купли-продажи ссылок с главных и внутренних страниц сайтов.