# How do I bulk-clear the Instiki cache

5 posts, 3 voices

 tanzer 36 posts I did a bulk update in the database to change our forum URL from one location to another. (Updated the field Content in the Revisions table.) Now a large number of entries in the cache are stale. I grepped in the cache directory tree for the old url, and found it present in files in several subdirectories of the cache/views folder for the web in question. I saw it in the subdirectories source, tex, revision, … In addition, the old URL is present in files in the top-level folder “storage.” What is the cleanest / simplest / safest way to purge the entire cache? Thanks! admin Administator 60 posts What is the cleanest / simplest / safest way to purge the entire cache? At the commandline, do an rm -R of the appropriate directory. There isn’t a GUI tool to do it. In addition, the old URL is present in files in the top-level folder “storage.” Those can all be deleted. tanzer 36 posts Can we make the instructions more specific, because I’m cautions about disrupting a structure that I don’t understand. How about: rm instiki/storage/* rm -r instiki/cache/views/azimuth There’s a whole structure of directories and files under the last directory, that’s okay to wipe out? distler Moderator 110 posts How about: rm instiki/storage/* That should be fine. rm -r instiki/cache/views/azimuth As should that. There’s a whole structure of directories and files under the last directory, that’s okay to wipe out? All of those will be recreated, as needed. tanzer 36 posts Thanks, I did that. It seems to be working fine, but one thing puzzles me. About a day after I cleared everything out as per the above, the full tree under instiki/cache/views/azimuth got repopulated – presumably when the site got crawled. But the storage folder didn’t get repopulated. Or rather, now there is just a single file in it: azimuth-markdownMML-2015-02-12-11-11-03.zip, with a timestamp of yesterday. Before I cleared out storage, there were tons of files it in, it looked something like one file per page of the wiki, though I didn’t look closely. Does this make sense; are there any signs of ill-health here? What is the function of the storage folder? Thanks.