Changeset 115615 in spip-zone


Ignore:
Timestamp:
Jun 12, 2019, 6:31:09 AM (5 days ago)
Author:
jluc@…
Message:

Accelerer les jobs en asynchrone + récupérer arguments via appel ou via securiser_action

Location:
_plugins_/accelerer_jobs/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/accelerer_jobs/trunk/action/accelerer_jobs.php

    r115605 r115615  
    2525 * @return void
    2626 */
    27 function action_accelerer_jobs_dist() {
    28         $securiser_action = charger_fonction('securiser_action', 'inc');
    29         list ($function, $nb) = explode('/', $securiser_action());
     27function action_accelerer_jobs_dist($args=null) {
     28        if (is_null ($args)) {
     29                $securiser_action = charger_fonction ('securiser_action', 'inc');
     30                list ($function, $nb) = explode ('/', $securiser_action());
     31        }
    3032        spip_log("### (function, nb) = ($function, $nb)", 'accelerer_job');
    3133        if (!$function or !is_string($function)) {
  • _plugins_/accelerer_jobs/trunk/paquet.xml

    r115578 r115615  
    22        prefix="accelerer_jobs"
    33        categorie="performance"
    4         version="0.1.0"
     4        version="0.2.0"
    55        etat="test"
    66        compatibilite="[3.0.0;3.3.*]"
Note: See TracChangeset for help on using the changeset viewer.