[wp-trac] [WordPress Trac] #36535: Action after cache flush

WordPress Trac noreply at wordpress.org
Fri Apr 15 12:32:56 UTC 2016


#36535: Action after cache flush
-----------------------------+------------------------------
 Reporter:  Unyson           |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Cache API        |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  performance
-----------------------------+------------------------------

Comment (by Unyson):

 > Do you have a reference for how this Cache API you've linked to actually
 works?

 Usage example is in
 [https://github.com/ThemeFuse/Unyson/blob/7040b3855ea38da4ae060fc86171bab63a06f4b6/framework/helpers
 /class-fw-cache.php#L7-L21 class comment].

 Main features:
 - Throws if cache key not found
 - Easy access nested keys by "multikey" format: `a/b/c` is equivalent to
 `$cache['a']['b']['c']`
 - Auto flush is executed
 "[https://github.com/ThemeFuse/Unyson/blob/7040b3855ea38da4ae060fc86171bab63a06f4b6/framework/helpers
 /class-fw-cache.php#L91-L95 regularly]" to prevent php memory full. Cache
 array keys are
 [https://github.com/ThemeFuse/Unyson/blob/7040b3855ea38da4ae060fc86171bab63a06f4b6/framework/helpers
 /class-fw-cache.php#L170-L176 deleted one by one] until php memory has
 [https://github.com/ThemeFuse/Unyson/blob/7040b3855ea38da4ae060fc86171bab63a06f4b6/framework/helpers
 /class-fw-cache.php#L31-L36 10Mb free]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36535#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list