X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fpurger.php;h=cc4359cbfa8bd466041560345552fa8fc5f970f1;hp=054b7aacf040b5e109b0b1f7510a4dee60afefae;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=52cf8ed924d5dcd0c28dde4b6c3196be6ec2d4f7 diff --git a/www/ecrire/action/purger.php b/www/ecrire/action/purger.php index 054b7aa..cc4359c 100644 --- a/www/ecrire/action/purger.php +++ b/www/ecrire/action/purger.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -36,12 +36,16 @@ function action_purger_dist($arg=null) case 'cache': supprime_invalideurs(); @spip_unlink(_CACHE_RUBRIQUES); - @spip_unlink(_CACHE_PIPELINES); - @spip_unlink(_CACHE_PLUGINS_PATH); - @spip_unlink(_CACHE_PLUGINS_OPT); - @spip_unlink(_CACHE_PLUGINS_FCT); @spip_unlink(_CACHE_CHEMIN); @spip_unlink(_DIR_TMP."plugin_xml_cache.gz"); + // on ne supprime que _CACHE_PLUGINS_OPT qui declenche la reconstruction des 3 + // _CACHE_PIPELINES _CACHE_PLUGINS_PATH et _CACHE_PLUGINS_FCT + // pour eviter des problemes de concurence + // cf http://core.spip.org/issues/2989 + //@spip_unlink(_CACHE_PIPELINES); + //@spip_unlink(_CACHE_PLUGINS_PATH); + //@spip_unlink(_CACHE_PLUGINS_FCT); + @spip_unlink(_CACHE_PLUGINS_OPT); purger_repertoire(_DIR_CACHE,array('subdir'=>true)); purger_repertoire(_DIR_AIDE); purger_repertoire(_DIR_VAR.'cache-css');