Revision: 1897
http://mrbs.svn.sourceforge.net/mrbs/?rev=1897&view=rev
Author: cimorrison
Date: 2011-08-27 17:32:53 +0000 (Sat, 27 Aug 2011)
Log Message:
-----------
Moved the Ajax batch size into internalconfig
Modified Paths:
--------------
mrbs/branches/datatables/web/Themes/default/header.inc
mrbs/branches/datatables/web/internalconfig.inc.php
Modified: mrbs/branches/datatables/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/datatables/web/Themes/default/header.inc 2011-08-27
17:16:01 UTC (rev 1896)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-08-27
17:32:53 UTC (rev 1897)
@@ -1181,7 +1181,7 @@
// so we need to count them all back before we know that
we've
// finished. The results will be held in the results
array.
?>
- var batchSize = 100;
+ var batchSize = <?php echo DEL_ENTRY_AJAX_BATCH_SIZE ?>;
var batches = [];
var batch = [];
for (var i=0; i<nEntries; i++)
Modified: mrbs/branches/datatables/web/internalconfig.inc.php
===================================================================
--- mrbs/branches/datatables/web/internalconfig.inc.php 2011-08-27 17:16:01 UTC
(rev 1896)
+++ mrbs/branches/datatables/web/internalconfig.inc.php 2011-08-27 17:32:53 UTC
(rev 1897)
@@ -247,6 +247,11 @@
$area_defaults['confirmation_enabled'] = $confirmation_enabled;
$area_defaults['confirmed_default'] = $confirmed_default;
+// We send Ajax requests to del_entry_ajax.php with data as an array of ids.
+// In order to stop the POST request getting too large and triggering a 406
+// error, we split the requests into batches with a maximum number of ids
+// in the array defined below.
+define('DEL_ENTRY_AJAX_BATCH_SIZE', 100);
/********************************************************
* PHP System Configuration - internal use, do not change
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits