Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance and caching for content management #187

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jul 26, 2024

Purpose

This pull request aims to improve the performance and caching of the content management system in the Liberu CMS Laravel application.

Description

The changes made in this pull request include:

  1. Implementing caching for the latest content items displayed on the homepage using the Livewire component.
  2. Caching individual content items using the findCached method in the Content model.
  3. Adding indexes to the contents table for the author_id, published_at, and status columns to improve query performance.
  4. Implementing a database query logging feature that logs all queries when the application is in debug mode.
  5. Adding a new console command ContentPublishLoadTest to perform a load test on the content publishing functionality.

Summary

The key changes in this pull request are:

  • Caching of latest content items in the ContentComponent Livewire component
  • Caching of individual content items using the findCached method in the Content model
  • Addition of indexes to the contents table to improve query performance
  • Database query logging in debug mode
  • New console command ContentPublishLoadTest for load testing content publishing

Suggested changes from Sweep Chat by @curtisdelicata. Continue chatting at https://sweep-chat-demo.vercel.app/c/17caa1e7-f2fc-4360-b751-8711292812bb.

@curtisdelicata curtisdelicata merged commit 8b433f2 into main Jul 26, 2024
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant