The path caching patch needs to be fundamentally checked for accuracy. I'm getting very bad hit ratios on my site for it (I see this by looking at the memcache stats... normal Drupal caching doesn't give any feedback as to its effectiveness).
The path caching patch needs to be fundamentally checked for accuracy. I'm getting very bad hit ratios on my site for it (I see this by looking at the memcache stats... normal Drupal caching doesn't give any feedback as to its effectiveness).
Comments
Comment #1
firebus commentedi confirm a bad ratio on my site...
a quick look at code makes it look like the cache is cleared whenever a path is added/modified/deleted - so that shouldn't be a problem unless pathauto or something similar is installed.
on two consecutive loads of a page i get a hit, so it's not completely broken.
could something like 404 errors be padding the miss count?
Comment #2
m3avrck commentedIndeed, I checked it out and I realized I had all of these...
Because imagecache uses Drupal 404s to generate resized images, somewhere this patch is caching this --- filling up the path cache *significantly* with junk.
Fixing the patch to remove this would help quite a bit with the hit ratio and I think we can further improve it.
Comment #3
robertdouglass commentedHot damn! We have a clue. Thanks m3avrck.
Comment #4
robertdouglass commentedHot damn! We have a clue. Thanks m3avrck.
Comment #5
robertdouglass commentedWow... looking at the cache_path table is like an archeological expedition into attempted XSS attacks.
Comment #6
m3avrck commentedIndeed, I hope to look into this soon again, if anyone beats me to it please let me know ;)
Comment #7
m3avrck commentedNot only that, but when a piece of content is created, it selects *all* aliases for menu items, up to 700+ queries running adding a node or comment. Why isn't the aliasing working in this case????
Comment #8
funana commentedAny news? Could this patch be used or is it not recommended by now?
Comment #9
niklp commented^ What he said - my DB is about to "dump core", so to speak.
Comment #10
mikejoconnor commentedCheck out issue 293861. I have been running the version of path cache on a site with 5M+ page views per month and 1.2 million url aliases. My hit rate ranges from 75-80%.
Comment #11
robertdouglass commentedso maybe mark this as duplicate or won't fix and centralize effort around 293861.
Comment #12
mikejoconnor commented