Loading...
 
Skip to main content

History: Link Cache

Source of version: 13 (current)

Copy to clipboard
             # Cache


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

{BOX()}This page is a quick copy from tw.o and needs ((refactor))ing 
This page needs ((screenshot))s{BOX}


{DIV(class=titlebar)}User doc{DIV}


See ((Wiki-Syntax Links|#Link_Cache|here)).


{DIV(class=titlebar)}admin Documentation{DIV}


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.


{DIV(class=titlebar)}Try it out{DIV}


please link to the live Feature on tikiwiki.org


{DIV(class=titlebar)}RFE{DIV}


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

To empty the cache manually try 
~pp~mysql -e 'truncate table tiki_link_cache;' tiki~/pp~ 
adjust tiki db name to fit yours 
Anecdotally, we've noticed a huge speed gain after clearing the cache on HEAD.


{DIV(class=titlebar)}Example{DIV}


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 
{CODE()}mysql -u dbuser -ppassword  dbname -B  -e  "select wiki_cache from tiki_pages where wiki_cache > 0"{CODE} Ran that and saw 30 some pages with wiki_cache = 7200. So tried this: 
{CODE()}mysql -u dbuser -ppassword  dbname -B  -e  "UPDATE tiki_pages       SET wiki_cache=0       WHERE wiki_cache > 0 "{CODE} 
Hope that works...


{DIV(class=titlebar)}Related{DIV}


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