Skip to content

Commit

Permalink
Merge pull request #131 from archon810/master
Browse files Browse the repository at this point in the history
Filters to allow overriding DISQUS_SYNC_TIMEOUT and memory_limit
  • Loading branch information
ryanvalentin authored Apr 26, 2017
2 parents af7198f + e74106e commit 8f5338d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion disqus/disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ function dsq_sync_post($post_id) {
function dsq_sync_forum($last_comment_id=false, $force=false) {
global $dsq_api, $wpdb;

set_time_limit(DISQUS_SYNC_TIMEOUT);
set_time_limit(apply_filters('disqus_sync_timeout', DISQUS_SYNC_TIMEOUT));

if ($force) {
$sync_time = null;
Expand Down
3 changes: 2 additions & 1 deletion disqus/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Adapted from WordPress 2.8
*/
@set_time_limit(0);
@ini_set('memory_limit', '256M');
define('WXR_VERSION', '1.0');
define('DISQUS_MEMORY_LIMIT', '256M');
@ini_set('memory_limit', apply_filters('disqus_memory_limit', DISQUS_MEMORY_LIMIT));

/**
* {@internal Missing Short Description}}
Expand Down

0 comments on commit 8f5338d

Please sign in to comment.