thedevdojo/voyager

"select * from `data_types`" query in every request.

Open

#3,396 opened on Jul 12, 2018

View on GitHub
 (14 comments) (0 reactions) (0 assignees)PHP (2,652 forks)batch import
help wanted

Repository metrics

Stars
 (11,817 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I have a site with high traffic. I used voyager to manage contents. but I noticed that its running a single query more than millions of times. the query is select * from data_types

I only want to load voyager when the url only have /admin, otherwise not.

I've tried by removing TCG\Voyager\VoyagerServiceProvider::class from service provider but without that the voyager is still running.

Please suggest how can I solve the issue.

Contributor guide