[glotpress-updates] [GlotPress] #508: GP_Original::import_for_project() doesn't clear the project cache for original updates

GlotPress noreply at wordpress.org
Thu Oct 29 20:17:15 UTC 2015


#508: GP_Original::import_for_project() doesn't clear the project cache for
original updates
-----------------------+-----------------
 Reporter:  ocean90    |      Owner:
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  1.0
Component:  Cache      |    Version:
 Keywords:  has-patch  |
-----------------------+-----------------
 In `GP_Original->import_for_project()` we have these lines:
 https://glotpress.trac.wordpress.org/browser/trunk/gp-
 includes/things/original.php?rev=1108&marks=111-113,115#L73

 If there is an original marked as obsolete and the sames original is
 imported again it will be marked as active, means the "all" count for the
 project increases by one. Since the count is cached we have to clear the
 cache. But that doesn't happen right now, see
 https://glotpress.trac.wordpress.org/browser/trunk/gp-
 includes/things/original.php?rev=1108&marks=177-180,111-123,115#L175,
 because it ignores `$originals_existing`. Probably
 because`$originals_existing` gets always increased, even if there was no
 update.

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


More information about the glotpress-updates mailing list