Help:缓存

来自Terraria Wiki
IsConeNotConical讨论 | 贡献2020年8月9日 (日) 01:27的版本 (创建页面,内容为“{{Translation|needed}} {{nutshell|Bypassing your cache means forcing your web browser to re-download a web page from scratch, which can often solve website display g…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
此页面的(部分)内容需要被翻译。
你可以帮助我们来翻译此页面

Template:Nutshell

Clear and reload your cache
Platform/Browser Process
Most Windows and Linux browsers:
Apple Safari:
  • Hold down ⇧ Shift and click the Reload toolbar button.
Chrome and Firefox for Mac:

To speed things up and conserve communications bandwidth, browsers attempt to keep local copies of pages, images, and other content you've visited, so that it need not be downloaded again later. Occasionally this caching scheme goes awry (eg. the browser insists on showing out-of-date content), making it necessary to bypass the cache, thus forcing your browser to re-download a web page's complete, up-to-date content.

When you encounter strange behavior, first try bypassing your cache. In most cases you can use the simple instructions shown to the right. If this is not enough, you can try performing a "Purge" of Gamepedia's wiki server cache. Three common problems that can be attributed to Gamepedia's cache not updating are:

  • Images not changing after uploading a new version.
  • Item linking template not updating the exclusivity icons.
  • Cargo queries (e.g. on weapon group pages, such as Guns) missing certain entities.

Purge[编辑源代码]

Note: purging may take a few minutes, though it usually happens immediately.

Purge is a more substantial operation that updates a wiki page when templates and other transcluded content shown is out-of-date. Purge clears the page's server cache and rebuilds the wiki page display using the most current wiki database content.

For updating a page display, any purge methods do the job, but for updating category listings, a "null edit" (described below) may be required.

Note: Images at Terraria Wiki operate on a separate caching system that cannot be updated manually, and no method described on this page will have any effect on them. In order for images to properly update, the caching period must expire on its own, which generally occurs after 5–15 minutes – but can occasionally take even hours.

How to purge[编辑源代码]

Purge link
Some pages provide a purge link. Simply click it. The {{purge}} template can be used to display a purge link on pages, but this should only be added in special cases where a page contains transcluded content that is likely to change.
Gadgets
There is also a Gadget that can add a purge link to your wiki interface on every page. This may be enabled via the Gadgets section of your Terraria Wiki Preferences: Purge Link.
Manually
All of the above methods use a special URL to purge the page. You can enter this URL manually using one of the following formats:
  • terraria.gamepedia.com/index.php?title=page_title&action=purge
  • terraria.gamepedia.com/page_title?action=purge.
Null edit
A null edit purges the page in the most complete way possible:
  1. Click the "Edit" tab at the top of the page.
  2. Click "Save" without making any changes.
This type of purge has the advantage of updating a page's placement in its various category listings, whereas other methods do not.