public
Description: Radiant is a no-fluff, open source content management system designed for small teams.
Home | Edit | New

Clear the page cache

Radiant’s cache is supposed to be invalidated automatically and/or every five minutes. However, there are situations where the automatic invalidation and/or five minute delay is not immediate enough. In these situations simply navigate to the root of your Radiant project and delete the cache directory.

cd /home/deploy/radiant_site/tmp
rm -r cache

Clearing the page cache from within your code

Since Radiant 0.8, ResponseCache has been replaced with Radiant::Cache (which inherits from Rack::Cache
Use this code to clear the entire cache without relying on a particular Radiant version:

if defined? ResponseCache == 'constant'
  ResponseCache.instance.clear
else
  Radiant::Cache.clear
end
Last edited by cmyk, Tue Oct 13 05:23:32 -0700 2009
Home | Edit | New
Versions: