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.
cache_clear_all documentation
http://api.drupal.org/api/function/cache_clear_all/6
says that cid is treated as a substring if $wildcard = TRUE
It would probably be more precise to say that cid is treated as a prefix
Comment | File | Size | Author |
---|---|---|---|
#7 | 409994-D6_0.patch | 789 bytes | jhodgdon |
#6 | 409994-D6.patch | 797 bytes | Wesley Tanaka |
#5 | 409994-D6.patch | 747 bytes | Wesley Tanaka |
#1 | 409994.patch | 538 bytes | Wesley Tanaka |
Comments
Comment #1
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedComment #2
MGParisi CreditAttribution: MGParisi commentedSeems Applied to me!
Fixed
Comment #3
add1sun CreditAttribution: add1sun commentedHm, the page still refers to it as a substring, unlike what the patch proposes, so this is not applied yet. Moving to the Drupal queue for api docs though.
Comment #4
jhodgdonMy feeling is that using the word "prefix" doesn't really clarify it much beyond what "substring" says, and when it says "the match is a right-hand match" just after that, I get confused.
So maybe these two sentences could be rewritten to explain what is actually happening in a clear manner?
Comment #5
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedYou're correct that the combination of those two sentences could use a rewrite.
substring is definitely incorrect.
Perhaps you would prefer "starts with" to "prefix"? Can you suggest an alternate phrasing that makes more sense to you? I tried using "starts with" but all my attempts were either too verbose or grammatically awkward.
Comment #6
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedAn attempt at phrasing without using the word "prefix"
Comment #7
jhodgdonI prefer the second wording, but either #5 or #6 is fine with me.
The patch does not apply for me without some editing, though. The problem is the headers. It's best to create the patch with the CVS diff command. Barring that, remove the a/ and b/ prefixes on the file paths, and the patch will apply.
I've attached a new version of my preferred patch. Thanks for your hard work!
Comment #8
jhodgdonComment #9
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedSorry about them git prefixes on the patch! By the way for what it's worth, you can strip off excess path parts in a patch like that by using:
patch -p1
instead of
patch -p0
Thanks for fixing it though!
Comment #10
Gábor HojtsyLet's get this to Drupal 7 first, so we are not going to introduce a regression.
Comment #13
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedPresumably if it's RTBC in Drupal 6, then it's also RTBC in Drupal 7?
Comment #14
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.
Comment #15
jhodgdonThe patch above in #7 still applies in Drupal 6, so please commit. Thanks!
Comment #16
Gábor HojtsyThanks, committed to Drupal 6 too.
Comment #18
gpk CreditAttribution: gpk commentedSame clarification would be helpful in 5.x.
Comment #19
jhodgdon7.0 is out tomorrow, 5.x is obsolete, won't fix, sorry.