Ticket #6860 (new enhancement)

Opened 2 months ago

Last modified 2 months ago

Make clean_post_cache child cleaning optional

Reported by: arnee Assigned to: anonymous
Priority: normal Milestone: 2.5.2
Component: Optimization Version: 2.5.1
Severity: normal Keywords: has-patch
Cc:

Description

clean_post_cache() makes a MySQL query in every call to clean the cache for child posts. This should be optional if the caller knows that there are no child posts or they're not cached.

Background: I need to query all posts have to clean the post cache to stay within the memory limits. Before 2.5 this was fine with clean_post_cache, but since the update the php execution time increased extremely because of this additional db query.

Attachments

clean_post_cache_recursive.patch (0.8 kB) - added by arnee on 04/27/08 22:14:28.
New argument $recursive (true by default)

Change History

04/27/08 22:14:28 changed by arnee

  • attachment clean_post_cache_recursive.patch added.

New argument $recursive (true by default)

04/27/08 22:16:44 changed by arnee

  • keywords set to has-patch.
  • component changed from General to Optimization.