Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I create page callback with Services module and return status code 404, Boost caches page anyway.
There is a problem, that Services ends page processing logic with function exit(), so Boost don't stores proper information about status code into variable $_boost['menu_item']['status'] (boost_deliver_html_page, which fills $_boost['menu_item']['status'] properly is not called in this case) and in boost_exit function it thinks, that status code is 200;
Comment | File | Size | Author |
---|---|---|---|
#3 | services_caching-2650446-3.patch | 785 bytes | petr.hajek |
#2 | 0001-Fix-for-Services-module.patch | 947 bytes | petr.hajek |
Comments
Comment #2
petr.hajek CreditAttribution: petr.hajek at Aira GROUP s.r.o. commentedAttaching suggested patch.
Comment #3
petr.hajek CreditAttribution: petr.hajek at Aira GROUP s.r.o. commentedHere is better tested patch with proper format.