[glotpress-updates] [GlotPress] #208: String counts caching issues

GlotPress noreply at wordpress.org
Mon Nov 24 11:44:14 UTC 2014


#208: String counts caching issues
----------------------+--------------------------
  Reporter:  dimadin  |      Owner:  markoheijnen
      Type:  defect   |     Status:  closed
  Priority:  normal   |  Milestone:  1.0
 Component:  Cache    |    Version:
Resolution:  fixed    |   Keywords:  has-patch
----------------------+--------------------------

Comment (by markoheijnen):

 {{{active_originals_count_by_project_id}}} looks fine to me since it's the
 value of total amount of strings in a project which get's invalidated on
 import. The problem was that the {{{translation_set_status_breakdown}}}
 cache value wasn't deleted. This happens in
 {{{gp_clean_translation_sets_cache()}}}.

 What does wonder me if we should rename
 {{{gp_clean_translation_sets_cache}}} to {{{gp_clean_project_cache}}} and
 then include cleaning {{{active_originals_count_by_project_id}}}.

 Also we can delete the {{{gp_clean_translation_set_cache()}}} call in
 GP_Translation_Set since it already happens in GP_translation. That said,
 it's one call more to the many calls GP_Translation will make.

--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/208#comment:18>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list