Moved functionality of clearing publication cache to preferences.