Title: Performance issue
Last modified: December 13, 2022

---

# Performance issue

 *  [vimalagarwalasentech](https://wordpress.org/support/users/vimalagarwalasentech/)
 * (@vimalagarwalasentech)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-44/)
 * Hi,
 * This is to update as we have many images approximately 80-100 images on homepage.
 * We have seen many Duplicate Queries Calls from the plugin which is impacting 
   to our site performance.
 * So we want to request if we can cache the query at below path
 * Filename: amazon-s3-and-cloudfront\classes\items\item.php
    Line No: 946
 * $sql = $wpdb->prepare( “SELECT * FROM ” . static::items_table() . ” WHERE source_id
   = %d AND source_type = %s”, $source_id, static::$source_type );
 * $object = $wpdb->get_row( $sql );
 * The above query is need to be cache.
 * For us if we cache this query we have seen the post edit page load time decrease
   from 30 second to 20 seconds in our case.
 * Let us know if you need more information.
 * Regards,
    Vimal Agarwal Asentech

Viewing 1 replies (of 1 total)

 *  Plugin Author [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * (@deliciousbrains)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/performance-issue-44/#post-16308969)
 * That SQL query is in a function that checks a cache first, and if nothing is 
   found runs the SQL query and saves its result in the cache for next time.
 * Please can you explain why that isn’t working for you, and how you changed things
   to add more caching?
 * -IJ

Viewing 1 replies (of 1 total)

The topic ‘Performance issue’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/performance-issue-44/#post-16308969)
 * Status: not resolved