AI助手支持GPT4.0
Cache Time displays the time that the current page was cached, and prints it via the cache_time();
Cache Time显示当前页面被缓存的时间,并通过cache_time()打印它。
function.
功能。
It takes into account the different time zones of the WordPress blog, and whether or not WP-Cache has blocked the current URL for caching.
它考虑了WordPress博客的不同时区,以及WP-Cache是否已阻止当前URL进行缓存。 p>
It has been tested with WP 2.6 and WP-Cache only, so please contact me with any questions or concerns with other systems.
仅通过WP 2.6和WP-Cache进行了测试,因此如果对其他系统有任何疑问或疑虑,请与我联系。
WP-Super-Cache should work, but it is not officially tested.
WP-Super-Cache应该可以工作,但是尚未经过官方测试。 p>
Be sure to check out my other plugins at my WordPress profile.
请确保在我的WordPress个人资料中查看我的其他插件。 p>
在WordPress模板页面内的任何地方,复制 <?php cache_time(); ?> to print the plugin’s output.?> code>打印插件的输出。 li>
<?php cache_time(); ?>
?>
?> code>打印插件的输出。 li>
ol>
There are 3 elements that can be customized with Cache Time:
可以使用“缓存时间”自定义3个元素: p>
$cached = 'Page cached on 缓存页面时显示的文本 em> –使用您喜欢的文本编辑器在“缓存时间”文件夹中打开cache-time.php并找到第27行,其中显示 $ cached ='页面缓存在: ';.:'; code>。Change the text between the quotes for your own message.更改您自己的消息的引号之间的文本。 li>Text displayed if no cache is present — Similar to above, find line 29 that says $not_cached = 'Time is now: '; and change the text between the 如果不存在缓存则显示文本 em> —与上面类似,找到第29行,显示 $ not_cached ='Time is now:'; code>,然后在quotes.引号。 li>Date Format — Again inside the cache-time.php file, line 36 can be changed to display your choice of information. 日期格式 em>-再次在cache-time.php文件中,可以更改第36行以显示您选择的信息。More details about customizing the date can be found at w3schools.有关自定义日期的更多详细信息,可以在 w3schools 中找到。 li>
$ cached ='页面缓存在: ';
: ';
:'; code>。
Change the text between the quotes for your own message.
更改您自己的消息的引号之间的文本。 li>
$not_cached = 'Time is now: ';
$ not_cached ='Time is now:'; code>,然后在quotes.
quotes.
引号。 li>
More details about customizing the date can be found at w3schools.
有关自定义日期的更多详细信息,可以在 w3schools 中找到。 li>
Go to the Plugins page and click Activate.
转到“插件”页面,然后单击“激活”。 li>
您希望显示信息的地方,请使用 <?php cache_time(); ?> inside your Template pages.?> code>在“模板”页面中。 li>
?> code>在“模板”页面中。 li>
原文出处:http://www.sanshu.cn/a/6123.html
群主管理都是支付大佬