# First php neo4j query times out after 60 seconds, all queries work fine after

**URL:** <https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699>\
**Category:** PHP\
**Created:** [May 5, 2026, 4:33am UTC](https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699 "2026-05-05T04:33:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave.anderson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dave.anderson/32/33586_2.png) [@dave.anderson](https://community.neo4j.com/u/dave.anderson)\
**Post date:** [May 5, 2026, 4:33am UTC](https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699/1 "2026-05-05T04:33:37Z")

</div>

I am hoping for some clues on how to debug this. I think it is related to caching, perhaps I can turn caching off ?

---

<div class="post-metadata">

**Author:** ![john.stegeman](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/john.stegeman/32/26277_2.png) [@john.stegeman](https://community.neo4j.com/u/john.stegeman)\
**Post date:** [May 5, 2026, 6:38pm UTC](https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699/2 "2026-05-05T18:38:23Z")

</div>

Hey Dave,

How are you connecting to Neo4j? Do you have some code you can share with us? Is there something specific leading you to think it's caching (normally caching makes things faster after the first time).h

---

<div class="post-metadata">

**Author:** ![dave.anderson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dave.anderson/32/33586_2.png) [@dave.anderson](https://community.neo4j.com/u/dave.anderson)\
**Post date:** [May 5, 2026, 7:04pm UTC](https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699/3 "2026-05-05T19:04:32Z")

</div>

Thank you. Here are the clues.

---

<div class="post-metadata">

**Author:** ![dave.anderson](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dave.anderson/32/33586_2.png) [@dave.anderson](https://community.neo4j.com/u/dave.anderson)\
**Post date:** [May 5, 2026, 7:11pm UTC](https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699/4 "2026-05-05T19:11:50Z")

</div>

1. More specifically if unlink (‘/tmp/php-bolt-filecache/analytics’);  
all is well thereafter.

---

<div class="post-metadata">

**Author:** ![john.stegeman](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/john.stegeman/32/26277_2.png) [@john.stegeman](https://community.neo4j.com/u/john.stegeman)\
**Post date:** [May 5, 2026, 8:59pm UTC](https://community.neo4j.com/t/first-php-neo4j-query-times-out-after-60-seconds-all-queries-work-fine-after/77699/5 "2026-05-05T20:59:22Z")

</div>

not much to go on. Based on what you posted, you might want to try reaching out to the author of that PHP driver - it appears you are using [GitHub - stefanak-michal/php-bolt-driver: PHP library to provide connectivity to graph database over TCP socket with Bolt specification · GitHub](https://github.com/stefanak-michal/php-bolt-driver)
