#3413 closed defect (bug) (fixed)
WordCamp Map is cached for 1 week! This means some listings do not show on the map!
Reported by: | stiofansisland | Owned by: | iandunn |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | WordCamp Site & Plugins | Keywords: | has-patch commit |
Cc: |
Description
The map here: https://central.wordcamp.org/schedule does not show all the listings on the map, this is because the map array is cached for 1 week.
I would suggest changing the cache time to at most one day. The queries involved are no that heavy.
Thanks,
Stiofan
Attachments (2)
Change History (15)
#2
@
7 years ago
Yeah, a week seems rather long. @coreymckrill is this something you could look at or provide more history on?
#3
follow-up:
↓ 5
@
7 years ago
Looks like @iandunn wrote the original code, I don't know the history. But I agree the cache should expire more quickly.
@stiofansisland somehow your patch is structured to remove all of the contents of the functions.php file and then replace it with the same content, plus your edits. Could you resubmit with just the changed lines?
#5
in reply to:
↑ 3
;
follow-up:
↓ 6
@
7 years ago
Replying to coreymckrill:
Looks like @iandunn wrote the original code, I don't know the history. But I agree the cache should expire more quickly.
@stiofansisland somehow your patch is structured to remove all of the contents of the functions.php file and then replace it with the same content, plus your edits. Could you resubmit with just the changed lines?
Sorry, my first time submitting a patch, would love to get it right :(
All i did was:
- nano functions.php
- svn diff functions.php > functions.php
- svn diff > map_patch.diff
Did i miss a step? (i prefer git :) )
Stiofan
#6
in reply to:
↑ 5
@
7 years ago
Replying to stiofansisland:
Sorry, my first time submitting a patch, would love to get it right :(
All i did was:
- nano functions.php
- svn diff functions.php > functions.php
- svn diff > map_patch.diff
Did i miss a step? (i prefer git :) )
Stiofan
No worries. I know the pain of coming to svn from git ;)
I think you actually added an extra step. After you nano functions.php
, and the file is changed, you should be able to just do svn diff > 3413.diff
(Note that we prefer that diff files have the ticket number in the name)
In this case you might want to svn revert functions.php
first and redo the change. I think your step 2 is what caused the patch weirdness.
#9
@
7 years ago
- Keywords commit added
- Owner set to iandunn
- Status changed from new to accepted
Hmmm, I don't remember why I chose a full week. It was 2.5 years ago, and the frequency of new camps being approved has grown a lot since then. That's the only thing I can guess.
Lowering it to a day seems good to me.
Side note: If you'd prefer, you can contribute with Git instead.
Patch to change caching to 1 day