History: Link Cache
Source of version: 12 (current)
Copy to clipboard
!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 ((refactor))ing This page needs ((screenshot))s^ -=User doc=- See ((Wiki-Syntax Links|#Link_Cache|here)). -=admin Documentation=- 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 ~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. -=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 {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... -=Related=- ((Cache External Images)) ((System Admin)) (aka Tiki Cache/System Admin)