Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Duplicate entry ‘2018-05-01’ for key ‘PRIMARY’

$
0
0

Replies: 0

Query Monitor is showing me database errors because the key is the same when you look up the same thing over and over again. Why not use update_option() instead of putting the counter in its own table?

INSERT INTO 'wp_searchmeter' ('terms','date','count','last_hits') 
VALUES ('tacos', UTC_DATE(), 1, 6)

apply_filters_ref_array('the_posts');

Duplicate entry 'tacos-2018-05-01' for key 'PRIMARY'
  • This topic was modified 25 minutes ago by cim.

Viewing all articles
Browse latest Browse all 59525

Trending Articles