Title: Fix Event Calendar Caching
Author: Daniel Mahaffy
Published: <strong>2015 年 2 月 2 日</strong>
Last modified: 2015 年 3 月 11 日

---

搜索插件

![](https://ps.w.org/fix-event-calendar-caching/assets/banner-772x250.jpg?rev=1082408)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/fix-event-calendar-caching/assets/icon-256x256.png?rev=1082583)

# Fix Event Calendar Caching

 作者：[Daniel Mahaffy](https://profiles.wordpress.org/danielmahaffy/)

[下载](https://downloads.wordpress.org/plugin/fix-event-calendar-caching.zip)

 * [详情](https://cn.wordpress.org/plugins/fix-event-calendar-caching/#description)
 * [评价](https://cn.wordpress.org/plugins/fix-event-calendar-caching/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/fix-event-calendar-caching/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/fix-event-calendar-caching/#developers)

 [支持](https://wordpress.org/support/plugin/fix-event-calendar-caching/)

## 描述

The “All-in-One Event Calendar” by Time.ly works great, but uses dynamic javascript.

This plugin creates a static version of the javascript that can be cached by the
browser.

I have tested this plugin with versions 2.1.9 and 2.2.0 of the event calendar plugin.

It may work with future releases, but use it at your own risk.

This plugin only uses the static javascript on the frontend. If a user is
 logged
in, the original dynamic script will be used. As far as I can tell caching the javascript
does not interfere with the plugin’s functionality, but there may be features of
the event calendar that do not work with this plugin.

## 安装

 1. Upload the fix-event-calendar-caching directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. The plugin needs write access to it’s folder to create the static js file.

## 常见问题

  How can I clear/update the cached javascript?

Anytime the All-In-One Event Calendar settings are saved, the cached javascript 
is recreated.
 You can also clear the cache by deleting the event-cal-x.x.x.js file
in the plugin folder. A new version of the All-In-One Event Calendar will also trigger
a new cached javascript.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Fix Event Calendar Caching」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Daniel Mahaffy ](https://profiles.wordpress.org/danielmahaffy/)

[帮助将「Fix Event Calendar Caching」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/fix-event-calendar-caching)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/fix-event-calendar-caching/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/fix-event-calendar-caching/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/fix-event-calendar-caching/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/fix-event-calendar-caching/)。

## 更新日志

#### 2.0.0

 * Fixed problems with the calendar pages. A bug was preventing agenda, week, and
   day view
    from working properly.
 * Creates a unique cache file for each event-calendar javascript link

#### 1.2.0

 * Cached javascript is now cleared when the event calendar settings are updated
 * Refactored code to improve code reuse
 * Added hash to cached javascript url to ensure it loads the most recent version
 * Plugin now uses the AI1EC_VERSION constant to load the version number

#### 1.0.1

 * Added sanity check before creating cache file

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.1 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/fix-event-calendar-caching/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[calendar](https://cn.wordpress.org/plugins/tags/calendar/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)
 *  [高级视图](https://cn.wordpress.org/plugins/fix-event-calendar-caching/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/fix-event-calendar-caching/reviews/)

## 贡献者

 *   [ Daniel Mahaffy ](https://profiles.wordpress.org/danielmahaffy/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/fix-event-calendar-caching/)