Fullscreen
[Show/Hide Right Column]

Cache


This page is about caching locally the pages when adding a hyperlink. This is different than Smarty cache.



This page is a quick copy from tw.o and needs refactoring
This page needs screenshots


User Documentation
Whenever Tiki finds a link to an external site in a Wiki page the link is cached in the Tiki cache, this allows the Wiki users to visit the page even if the site is offline or the page is removed or changed.

When you make a link in a Wiki page, you can choose to request that it not be cached. This is done by adding the phrase |nocache after the link description between the square brackets.

The cache option in the Admin menu lets the administrator administer the Tiki cache:

insert graphic

You can list the cached pages, find pages using the find button and for each cache entry you can view it, remove it, or refresh it (will retrieve a fresh copy of the page). If the enrty is removed it will no longer display a cache link from the Wiki page where the site is referentiated.

insert graphic
If the wiki cache is enabled then cached pages will show a (cached) text besides the page description. A special icon is also added to let the user force a refresh of the page if something that should be updated was not because the cached page is being displayed. The icon can be found at the top:

insert graphic
This icon can be used to refresh a cached wiki page.

Try it out
please link to the live Feature on tikiwiki.org

RFE
It would be very nice if there was a way of purging the cache via the tiki interface.

To empty the cache manually try
mysql -e 'truncate table tiki_link_cache;' tiki

adjust tiki db name to fit yours
Anecdotally, we've noticed a huge speed gain after clearing the cache on HEAD.

Example
Users complained that personal content was being displayed to the wrong users. The page said (Cached) at the top, but we had global cache off (Admin > Wiki). nkoth recommended
mysql -u dbuser -ppassword  dbname -B  -e  "select wiki_cache from tiki_pages where wiki_cache > 0"
Ran that and saw 30 some pages with wiki_cache = 7200. So tried this:
mysql -u dbuser -ppassword  dbname -B  -e  "UPDATE tiki_pages       SET wiki_cache=0       WHERE wiki_cache > 0 "

Hope that works...

Related
Cache External Images
System Admin (aka Tiki Cache/System Admin)




Contributors to this page: Marc Laporte9140 points  , E.W. Peter Jalajas310 points  , xavi67881 очков  , Scot Wilcoxon684 points  , Olaf-Michael Stefanov880 points  , dthacker1483 points  , Mose96 points  and system .
Page last modified on Thursday 01 July, 2010 22:40:48 UTC by Marc Laporte9140 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki