[wordpress插件] Cache Time快取时间

wordpress 插件 文章 2020-03-15 12:00 531 0 全屏看文

AI助手支持GPT4.0

评分
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进行缓存。

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应该可以工作,但是尚未经过官方测试。

Be sure to check out my other plugins at my WordPress profile.

请确保在我的WordPress个人资料中查看我的其他插件。

USAGE

用法

    1. Anywhere inside the WordPress template pages, copy

    2. 在WordPress模板页面内的任何地方,复制 <?php cache_time();

      ?> to print the plugin’s output.

    3. ?> 打印插件的输出。

    CUSTOMIZATION

    自定义

    There are 3 elements that can be customized with Cache Time:

    可以使用“缓存时间”自定义3个元素:

      1. Text displayed when page is cached — Open cache-time.php inside the Cache-time folder with your favorite text editor and find line 27 that says $cached = 'Page cached on

      2. 缓存页面时显示的文本 –使用您喜欢的文本编辑器在“缓存时间”文件夹中打开cache-time.php并找到第27行,其中显示 $ cached ='页面缓存在

        : ';.

        :';

        Change the text between the quotes for your own message.

      3. 更改您自己的消息的引号之间的文本。

      4. 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

      5. 如果不存在缓存则显示文本 —与上面类似,找到第29行,显示 $ not_cached ='Time is now:'; ,然后在

        quotes.

      6. 引号。

      7. Date Format — Again inside the cache-time.php file, line 36 can be changed to display your choice of information.

      8. 日期格式-再次在cache-time.php文件中,可以更改第36行以显示您选择的信息。

        More details about customizing the date can be found at w3schools.

      9. 有关自定义日期的更多详细信息,可以在 w3schools 中找到。

      LIMITATIONS

      限制

        1. Currently Cache Time only works with WP-Cache, though theoretically it should work with WP-Super-Cache as well.
        2. 目前,“缓存时间”仅适用于WP-Cache,尽管从理论上讲,它也应适用于WP-Super-Cache。

安装步骤

    1. Copy the folder cache-time into your WordPress plugins directory (wp-content/plugins).
    2. 将文件夹缓存时间复制到WordPress插件目录(wp-content / plugins)中。

    3. Log in to WordPress Admin.

    4. 登录WordPress管理员。

      Go to the Plugins page and click Activate.

    5. 转到“插件”页面,然后单击“激活”。

    6. Wherever you wish to display the information, use

    7. 您希望显示信息的地方,请使用 <?php cache_time();

      ?> inside your Template pages.

    8. ?> 在“模板”页面中。

下载地址
https://downloads.wordpress.org/plugin/cache-time.1.02.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Category and Tag Specific Widgets类别和标签特定的小部件
[wordpress插件] Contact Form 7 Domain Blacklist联系表7域黑名单
[wordpress插件] Astounding Spam Prevention预防垃圾邮件
[wordpress插件] BCL Technologies PDF2HTMLBCL Technologies PDF2HTML
[wordpress插件] Darren&#8217;s Related Posts plugin达伦的相关帖子插件
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8001
问题? 7234
如何快速搭建抽奖助手小程序(无需代码知识) 5023
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5977
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5500
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5196
如何解决渲染层网络错误Failed to load media? 16550
小程序找号找回 释放昵称? 2415
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2494
删除部分微信用户个人数据的通知,怎么删除? 5534