calmPress / calmpress

A modern CMS based on WordPress
https://calmpress.org/
21 stars 1 forks source link

Make the "counts" object cache group persistant #314

Closed markkap closed 3 years ago

markkap commented 3 years ago

Could not find why it is not persistant in wordpress core, and could not figure a reason why it should not be.

Seems like the group is used to cache value of various counts calculated on the admin side. A short term caching of 15 minutes can be enough to avoid constant recalculation while still keeping close to the wordpress core expectations.

looks like it is used for front end in get_adjacent_post which do not make much sense as it is not persistant cached. Drop it for now to keep functional compatibility