Generate all boost cacheable pages is not working with large path list

Created on 8 February 2023, almost 2 years ago
Updated 20 April 2024, 7 months ago

My config:

Apache/2.4.41 
PHP/8.0.21
Drupal 9.4.0

I have two issues:

1.
After click on Generate all boost cacheable pages crawler start generating html pages in public://boost folder.

But in logs I see Retrieve route public://boost/.html can not be done.
And I don't see x-boost header on my pages.

2.
If I paste over 2000 pages in Boost Cacheability Settings in pages textarea I see this error:
Warning: preg_match(): Compilation failed: regular expression is too large at offset 80708 in Drupal\Core\Path\PathMatcher->matchPath()

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇷🇺Russia kazah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kazah
  • 🇧🇪Belgium nonom Brussels

    The branch 8.x1.x-dev still in development,

    It will be released for ^8 || ^9 || ^10 as soon as possible.

  • 🇷🇺Russia kazah

    Thanks for the answer.

    I just wanted to speed up the output of the module as best I can.

    I used boost on Drupal 6 and it worked very well despite a bunch of settings.

    Now Drupal 9 lacks this module.

    Thanks for your work.

  • 🇧🇪Belgium nonom Brussels

    Hi @kazah we haven't already an alpha release but a dev branch.

    We are working testing on huge sites and trying to get the best approach for this, I guess it will be released soon (tm) ;-)

    Contributions are always welcome!

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    The main problem ist already reported by myself in issue: 🐛 Boost Cacheability Settings seems not to work properly Active

    But because of the following problem I keep this issue open but currently a support Request:

    @kazah
    > If I paste over 2000 pages in Boost Cacheability Settings

    Oh, this isn't a good idea to use this setting in this way because of many reasons. The idea of this feature (setting) is following the code for block visibility. So we maybe we should add a warning or also add a filed limit.

    Background situation:
    First of all everything of this field is stored in config and loaded very often in the current code. I'm already thinking of implementing a bypass of this config when not even remove it. Because it's currently used on every page load I think it's already a performance problem even when used with only some path setting. And as your error message shows this setting is used with an regex code on paths.

  • 🇷🇺Russia kazah

    Show warning message is good idea.
    Thank you.

  • 🇧🇪Belgium nonom Brussels
  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    > But in logs I see Retrieve route public://boost/.html can not be done.

    This is already fixed and available in dev release.

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany
  • 🇩🇪Germany c-logemann Frankfurt/M, Germany
Production build 0.71.5 2024