So my work’s site has X-Cache setup and so any changes made to the site is usually cached in two places, X-Cache and with X-Carts Smarty.
So to make things simple, I’ve integrated the cleanup of the cache’s into the default x-cart cleanup page.
So just edit cleanup.php to include these lines:
// Remove XCache cache if it's installed. if (function_exists("xcache_clear_cache")) { echo "XCache "; $i=0; while ( $i < xcache_count(0)) { @xcache_clear_cache(0, $i); echo "php#".$i.", "; $i++; } $i=0; while ( $i < xcache_count(1)) { @xcache_clear_cache(1, $i);# echo "var#".$i.", "; $i++; } echo " Removed."; }