Support » Plugin: BJ Lazy Load » preg_replace max execution time exceeded

  • Error in file class-bjll.php:329 with long text article. Regex in this function execution time is too slow (more than 30 seconds). I removed /s modificator for “. matches newline” and it works now normally. Anyway, html-tags not separated by newlines normally. Please, make revision of regexps in code and apply some patches. Or even dont use regex in this function.

    $regex = '/<\s*\w*\s*class\s*=\s*[\'"](|.*\s)' . $skip_classes_ORed . '(|\s.*)[\'"].*>/iU';

    • This topic was modified 1 year, 6 months ago by  bzik.

    The page I need help with: [log in to see the link]

  • The topic ‘preg_replace max execution time exceeded’ is closed to new replies.