[glotpress-updates] [GlotPress] #465: The 'active_originals_count_by_project_id' cache race condition

GlotPress noreply at wordpress.org
Wed Jul 15 04:54:24 UTC 2015

#465: The 'active_originals_count_by_project_id' cache race condition
 Reporter:  dd32    |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  1.0
Component:  Cache   |    Version:
 Keywords:          |
 The 'active_originals_count_by_project_id' cache is set within
 `GP_Original::count_by_project_id()` and only deleted at the start of the
 `GP_Original::import_for_project()` method.

 This results in the following condition where the cache group is out of
 - Process 1 starts import, clears cache
 - Process 2 calls `GP_Original::count_by_project_id()`, caches the current
 - Process 1 continues importing..
 - Process 1 finishes import.
 - Process X calls  `GP_Original::count_by_project_id()` and gets a stale

Ticket URL: <https://glotpress.trac.wordpress.org/ticket/465>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'

More information about the glotpress-updates mailing list