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;

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

petr.hajek created an issue. See original summary.

petr.hajek’s picture

Status: Active » Needs review
FileSize
947 bytes

Attaching suggested patch.

petr.hajek’s picture

Here is better tested patch with proper format.