swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.48k stars 3.16k forks source link

Menu items and dashboard cards are duplicated each page reload #2705

Closed juberjj closed 5 years ago

juberjj commented 5 years ago

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a simple script for reproducing the error.

Implemented Swoole to a current PHP App. Part of the app uses Laravel Nova.

  1. What did you expect to see?

Page should render accordingly

  1. What did you see instead?

Duplication of menu items and dashboard cards

  1. What version of Swoole are you using (show your php --ri swoole)? image

  2. What is your machine environment used (including version of kernel & php & gcc) ?

PHP-FPM 7.3 on Alpine gcc (Alpine 8.3.0) 8.3.0

image

Many thanks in advance

doubaokun commented 5 years ago

@juberjj Could you send the errors you have seen?

juberjj commented 5 years ago

Hey @doubaokun the screenshot above will show you the duplication of items, cards in one side and menu elements in the other whereas you should see only one.

doubaokun commented 5 years ago

There’s not enough information about the question is relevant to Swoole.

juberjj commented 5 years ago

@doubaokun What information would be needed for you? I sent everything I have and also the information you requested and after two weeks you just close it and dismissed it. Don't even know what else to say.

toxmc commented 5 years ago

Because Swoole is Resident memory program. If you use global or static variables. After the request, you must reset global and static variables or Initialize the returned variables before request. Otherwise, the last request will contaminate this one. Why PHP-FPM is ok because PHP-FPM did that for you!

marianoarga commented 2 years ago

@juberjj did you find the solution? I'm facin similar but my queries and elocuent models are getting duplicated, I got 2 upstreams behind a reverse proxy nginx