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:
Executable
BIN
Binary file not shown.
Executable
+1
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"><defs><font id="fontello" horiz-adv-x="1000"><font-face font-family="fontello" font-weight="400" ascent="850" descent="-150"/><glyph glyph-name="wpforms" unicode="" d="M1000 794V-54c0-56-44-96-96-96H96c-52 0-96 40-96 96v808c0 52 40 96 96 96h808c52 0 96-40 96-96v40zM960-50v800c0 28-32 60-60 60h-40L640 650 500 770 360 650 140 810h-40c-32 0-60-28-60-60V-50c0-28 28-60 60-60h800c28 0 60 32 60 60zM340 470v-40H180v40h160zm0-160v-40H180v40h160zm20 400l120 100H220l140-100zm460-240v-40H400v40h420zm0-160v-40H400v40h420zM640 710l140 100H520l120-100zm180-560v-40H620v40h200z" horiz-adv-x="1000"/></font></defs></svg>
|
||||
|
After Width: | Height: | Size: 652 B |
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><path d="M25 1.4v21.2c0 1.4-1.1 2.4-2.4 2.4H2.4C1.1 25 0 24 0 22.6V2.4C0 1.1 1 0 2.4 0h20.2C23.9 0 25 1 25 2.4v-1zm-1 21.1v-20c0-.7-.8-1.5-1.5-1.5h-1L16 5l-3.5-3L9 5 3.5 1h-1C1.7 1 1 1.7 1 2.5v20c0 .7.7 1.5 1.5 1.5h20c.7 0 1.5-.8 1.5-1.5zM8.5 9.5v1h-4v-1h4zm0 4v1h-4v-1h4zm.5-10L12 1H5.5L9 3.5zm11.5 6v1H10v-1h10.5zm0 4v1H10v-1h10.5zM16 3.5L19.5 1H13l3 2.5zm4.5 14v1h-5v-1h5z" fill="0"/></svg>
|
||||
|
After Width: | Height: | Size: 453 B |
Reference in New Issue
Block a user