GSoC 2025 Proposal: Django SmartCache

Django SmartCache – Intelligent Query & Response Caching Middleware.

Hello, I am Aditya Kasture. I have good hand in Django development and have experience with Django ORM, caching, and real-time applications (Django Channels).

I am interested in contributing to Django in Google Summer of Code 2025 and would love your feedback on my proposal before submitting it officially.

Project Proposal: Django SmartCache

Django applications often suffer from redundant database queries and slow API response times due to a lack of efficient caching mechanisms.

This project aims to improve performance, scalability, and efficiency in Django applications by offering an easy-to-use caching layer.


How It Works

  1. Middleware-Based Response Caching

    • Automatically caches GET responses.
    • Uses MD5 hashing to generate unique cache keys.
  2. Django ORM Query Caching

    • Caches expensive queries to reduce redundant database hits.
    • Uses hashing for SQL queries to create unique cache keys.
    • Supports Django signals for automatic invalidation when models are updated.
  3. Pluggable Cache Backends

    • Supports Redis, Memcached, and Django DB cache.
    • Works seamlessly with Django’s existing caching framework.

Resources & Code

I will soon provide my GitHub link for the code.


Questions for the Django Community

  1. Does Django currently have plans for improving caching strategies that might overlap with this?
  2. Any feedback or suggestions to improve the proposal before submitting it to GSoC?

Thank You!

I appreciate any feedback or suggestions! Looking forward to hearing your thoughts.
To be honest I have taken help from AI for writing this post.

Best,
Aditya Kasture

aditya.kasture09@gmail.com