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.
Was seeing a whole lot of: Expired <em class="placeholder"></em> stale files from static page cache.
in my logs coming from http://default/index.php on cron runs.
Did a small amount of debugging; turns out $_boost['base_dir'] in boost_cron() was returning a value of path/to/boost/normal/default
, but Boost was saving off cached files in path/to/boost/normal/www.example.com
.
I was able to get around the problem by manually setting the $base_url to http://www.example.com
in settings.php.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedCould I just clarify something. So boost is saving in the folder cache/normal/www.example.com but you are saying that if the base_url is not set in settings.php then cron is using "default" as a base_url and trying to clean non-existent files ? Is your installation a multi-domain set up because mine is and I haven't got a single base_url set anywhere :-)
Comment #2
iamEAP CreditAttribution: iamEAP commentedThat's correct. And my installation is not a multi-domain setup.