[wordpress插件] Cache Time快取时间

wordpress 插件 文章 2020-03-15 12:00 533 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插件] a Gateway for Pasargad Bank on WooCommercePasargad银行在WooCommerce上的网关
[wordpress插件] BestRate Payment Gateway for WooCommerceWooCommerce的BestRate付款网关
[wordpress插件] Category Expander分类扩展器
[wordpress插件] Alot很多
[wordpress插件] WP Search with Elasticsearch用Elasticsearch进行WP搜索
随便看看
小程序迁移主体,迁移函拼接上传啥意思? 364
微信支付:当前商户存在异常行为,本次交易暂时无法完成。 2490
同一个小程序可以关联不同主体的微信支付商户号并发调用支付接口发起支付吗? 753
微信小程序可以复用微信公众号的资质进行快速认证,微信开放平台可以复用微信公众号的资质进行快速认证吗? 784
请问现在是苹果可以使用虚拟物品支付了吗? 381
我在微信小程序里进行了盲盒抽奖花了一百七十多? 421
云开发本来未报错但调了基础库版本后突然报了一百多个错误? 329
商户号现金红包,超24小时未退款,API查询领取状态,显示待领取,请问是什么情况? 314
公司开发一款小程序,button按钮弹窗安卓手机正常使用,苹果用户反应点击后没反应是怎么回事? 352
获取用户手机号使用getPhoneNumber回调中获取不到code ? 1836