PetPress version 1.8

by | Nov 7, 2024

Release date: November 12, 2024.

Version 1.8 of PetPress is largely a maintenance release, but does contain a few noteworthy changes:

1) On the admin screen, it is possible now to set the units of weight to kilograms instead of pounds. This affects the list page (if you have the option set to show exact ages and weights) and the detail page. Note that the selection of pounds or kilograms does nothing to affect the PetPoint data. For example, if a cat is recorded in PetPoint as weighing 10 pounds and you set PetPress to use kilograms, the weight will be displayed as “10 kilograms”. There is no conversion taking place, so it is up to the administrator to use the same units in PetPress as they are using in PetPoint.

2) The DONOTCACHEPAGE directive has been added for pages that include the PetPress shortcode (that is, not the whole site but just the page(s) that show animal info). PetPress has its own caching system and if the shortcode is placed on a page that is cached by another system, updates the the underlying PetPoint data may not appear on the site in a timely way. By design, changes to PetPoint should appear within 30 minutes, but page-level caching may disrupt this. Several prominent caching systems will heed the DONOTCACHEPAGE directive.

In addition, there are two smaller items. One is that there is a new hover effect on the list page, and the other is a bug fix — animals whose weights were less than 3 lb may not have had their weights shown on the site prior to the fix.

Barring any bugs that surface, this is planned to be the final release of PetPress before version 2 launches in Jan/Feb, 2025. For the smoothest upgrade path, it would be best to use the built-in styles of PetPress, and not to override any functions. For more information about version 2, please refer to the version 2 notes (a hyperlink will be provided here when those notes are ready).