Refering to files, location.xx.inc in "supported" folder.
I made change to location.my.inc,
'LB' => "Labuan"
to
'LA' => "Labuan"
Then edited that location node, and re-submit. (I changed to another province, then switched back to the old province) No changes are reflected.
I have cleared drupal cache, browser cache and restarted the local server (MAMP).
These location.xx.inc are really persistent.
To reproduce this
1. Create a location country - Malaysia. key in "Kedah" in province/state.
2. Submit. You will see KD, in your province/state
3. Go to location.my.inc
'KD' => "Kedah"
to
'AB' => "Kedah"
4. Edit the location node you created in step 1.
5. Change to another province, say "Sarawak"
6. Submit. (You will get SR)
7. Now, edit that node location to "Kedah".
Supposed to get AB, but instead it would still be KD.
Is this a bug?
Comments
Comment #1
yesct commentednot a duplicate, but deals with location.xx.inc #351000: View query has wierd "AND (0)" and no results (might be missing functions in location.xx.inc)
Comment #2
jcamfield commentedI am having this problem in D6/Loc3 ; changes to files in sites/all/modules/location/supported/location.xx.inc do not reflect in the autocomplete (testing using URL/location/autocomplete/xx ) even after a cache clearing (web browser and drupal) and a cron run.
Some weird details:
I got one file (added Lebanon states) to work on a test site (which had no Lebanese locations posted) but changes to other location.xx.inc files do not seem to refresh. On a live site, neither adding the Lebanese states nor changing existing files refreshes to the autocomplete side.
Is there an autocomplete cache to clear?
Comment #3
jcamfield commentedFIXED; much thanks to BDragon in IRC for troubleshooting this!
Use the devel module to execute this code after and changes to supported/location.xx.inc files:
cache_clear_all('provinces:', 'cache_location', TRUE);
Feature request: make a button for the location admin page to do this.
Comment #4
bdragon commentedOK, hopefully I got all the code right, would appreciate some testing.
http://drupal.org/cvs?commit=198346
http://drupal.org/cvs?commit=198348
http://drupal.org/cvs?commit=198350
Comment #6
marcushenningsen commented#705816: Flush All Caches doesn't clear location_cache table marked a duplicate