Snapshot: MLS sync fixes, image refresh, plugin/theme updates
MLS plugin fixes from this session: - Fix silent insert failures: location column NOT NULL was rejecting wpdb->insert calls, causing ~18k new properties since Dec 2025 to be lost. Inserts now build raw SQL with ST_PointFromText so the spatial column is populated atomically. - Auto-refresh expired media URLs in MLS_Media_Handler::fetch_and_cache(), guarded by a property-level GET_LOCK so concurrent fetches share one API refresh. - Normalize WP_Error to null in mls_get_property_image() so callers can rely on the documented string|null contract. - Support comma-separated property_type filters in MLS_Query and MLS_Cluster so the homepage "View All Commercial" link (?property_type=Commercial+Sale,Land,Farm) actually filters correctly. - Incremental sync now looks back 10 minutes past the latest modification timestamp as a safety margin against missed records. - Smart sync exits silently (info-level, not warning) when a full sync is in progress. Operational: - New cron: weekly full sync Sundays at 3 AM (/usr/local/bin/mls-full-sync). - New cron: hourly 2GB cap on mls-thumbnails/ and cache/transformed-images/ (/usr/local/bin/mls-image-cache-cap). - Logrotate config for wp-content/debug.log (2-day retention, daily rotation, delaycompress). Repo policy: - CLAUDE.md updated with explicit "commit everything except build artifacts" policy. - .gitignore: untrack runtime image caches and debug.log rotations. Other modifications in this snapshot are pre-existing in-flight theme/plugin/db_content_updates work. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
<svg width="56" height="64" viewBox="0 0 56 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M28 4C21.375 4 16 9.375 16 16V24H40V16C40 9.375 34.625 4 28 4ZM12 16C12 7.25 19.125 0 28 0C36.75 0 44 7.25 44 16V24H46C51.5 24 56 28.5 56 34V54C56 59.625 51.5 64 46 64H10C4.375 64 0 59.625 0 54V34C0 28.5 4.375 24 10 24H12V16ZM10 28C6.625 28 4 30.75 4 34V54C4 57.375 6.625 60 10 60H46C49.25 60 52 57.375 52 54V34C52 30.75 49.25 28 46 28H10ZM30 39V49C30 50.125 29 51 28 51C26.875 51 26 50.125 26 49V39C26 38 26.875 37 28 37C29 37 30 38 30 39Z" fill="#777777"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 571 B |
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<svg width="64" height="56" viewBox="0 0 64 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path id="triangle-exclamation" d="M4.25 48.625C4 49 4 49.375 4 49.75C4 51 5 52.125 6.25 52.125H57.625C58.875 52.125 60 51 60 49.75C60 49.375 59.875 49 59.625 48.625L34.5 5.5C34 4.625 33 4 32 4C30.875 4 29.875 4.625 29.375 5.5L4.25 48.625ZM0.75 46.625L25.875 3.5C27.125 1.375 29.5 0 32 0C34.375 0 36.75 1.375 38 3.5L63.125 46.625C63.625 47.5 64 48.625 64 49.75C64 53.25 61.125 56 57.625 56H6.25C2.75 56 0 53.25 0 49.75C0 48.625 0.25 47.5 0.75 46.625ZM32 16C33 16 34 17 34 18V34C34 35.125 33 36 32 36C30.875 36 30 35.125 30 34V18C30 17 30.875 16 32 16ZM29 44C29 42.375 30.25 41 32 41C33.625 41 35 42.375 35 44C35 45.75 33.625 47 32 47C30.25 47 29 45.75 29 44Z" fill="#777777"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 780 B |
Reference in New Issue
Block a user