Здравствуйте,
С включенным wp-cache заходим на блог, логинимся в мета, после этого можно оставлять комменты и редактировать новости.. Но! В sidebar-е закэшированных страниц отображается все так же: Зарегистрироваться, Вход. Как бы это исправить?
Спасибо.
Или только у меня так, а у остальных все нормально?
http://mnm.uib.es/gallir/wp-cache-2/
почитай. если я правильно понял то там указано что можно вставить код и некоторые файлы кэшироваться не будут.
[quote]How do I make certain parts of the page stay dynamic?
It’s compatible with Staticze Reloaded. From their FAQ:
There are two ways to do this, you can have functions that say dynamic or include entire other files. 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–>`[/quote]
Супер!
Закрываем код, который не должен кэшироваться:
<!–mfunc–> <?php … ?> <!–/mfunc–>
Вызов файла, котрый не будет кэшироваться:
<!–mclude–> <?php include_once(ABSPATH . ‘file.php’); ?> <!–/mclude–>
И все работает)
Lecactus, спасибо!