Hello,

I have a site with pathauto and global redirect enabled, so requests to node/12345 are redirected to some nice urls and duplicate content is avoided.

However, boost also creates caches for cache/normal/www.example.com/node/12345, so that eventually visitors are not redirected anymore.

Adding node/* to the exclusion path, also excludes the nodes with the pretty url. As far as I can see, the node/12345 caches are not created by the Boost crawler.

Any ideas how to keep Boost from caching urls with global redirects?

CommentFileSizeAuthor
#3 boost-661298.patch2.46 KBmikeytown2

Comments

mikeytown2’s picture

Title: Pathauto and Global Redirect problems » Allow for non alias URLs to not be cached
Category: bug » feature

One more module to add into the mix
http://drupal.org/project/path_redirect
Should do what your looking to do - 1 Path for 1 node. Be sure to clear the boost cache after enabling so the new redirects will work.

In the mean time I've changed this into a feature request; so you can disable boost from caching a url if that url is in the url alias table.

mikeytown2’s picture

Pseudocode

Inside boost_is_cacheable()
SELECT count(*) FROM url_alias WHERE src = $path; if > 0 and "this setting is enabled" then don't cache this page since an alias exists for it.

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new2.46 KB

This needs testing... not sure if it will work in its current form; my gut says no.

digi24’s picture

Thanks, I am testing your patch right now and will give feedback. I made some adjustments elsewhere, so I'll have to revert them first.

In case somebody else is testing it, do not forget to add round brackets in the SQL-part.

mikeytown2’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.