{"id":15525550,"url":"https://github.com/salvatorecordiano/facile-it-realpath_cache","last_synced_at":"2025-04-23T09:01:51.947Z","repository":{"id":99776003,"uuid":"91508701","full_name":"salvatorecordiano/facile-it-realpath_cache","owner":"salvatorecordiano","description":"Facile.it Engineering Blog: Is it all PHP OPCache's fault?","archived":false,"fork":false,"pushed_at":"2017-10-04T08:03:19.000Z","size":6,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T23:12:15.429Z","etag":null,"topics":["cache","demo","opcache","php","realpath"],"latest_commit_sha":null,"homepage":"https://engineering.facile.it/blog/eng/realpath-cache-is-it-all-php-opcache-s-fault/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salvatorecordiano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-16T22:06:24.000Z","updated_at":"2024-04-13T08:07:10.000Z","dependencies_parsed_at":"2023-03-13T15:46:44.465Z","dependency_job_id":null,"html_url":"https://github.com/salvatorecordiano/facile-it-realpath_cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecordiano%2Ffacile-it-realpath_cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecordiano%2Ffacile-it-realpath_cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecordiano%2Ffacile-it-realpath_cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecordiano%2Ffacile-it-realpath_cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salvatorecordiano","download_url":"https://codeload.github.com/salvatorecordiano/facile-it-realpath_cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250403832,"owners_count":21424794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","demo","opcache","php","realpath"],"created_at":"2024-10-02T10:58:31.528Z","updated_at":"2025-04-23T09:01:51.929Z","avatar_url":"https://github.com/salvatorecordiano.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is it all PHP OPCache's fault?\n\nThis repository contains code showed in the post [Is it all PHP OPCache's fault?](https://engineering.facile.it/blog/eng/realpath-cache-is-it-all-php-opcache-s-fault/) published on [Facile.it Engineering Blog](https://engineering.facile.it).\n\n## Installation\n\n```\n$ git clone https://github.com/salvatorecordiano/facile-it-realpath_cache.git\n$ cd facile-it-realpath_cache\n$ docker pull salvatorecordiano/realpath_cache\n```\n\n## Shortcuts\n\n- `start.sh` starts the Docker container with the right configuration; \n- `release-switcher.sh` swaps the current release symlink every 10 seconds;\n- `release-watcher.sh` checks the current release served by Apache every second, by making an HTTP request.\n\n## Configuration: production\n\n```\n# start the container with production configuration\n$ ./start.sh production \n# start switching the current release\n$ ./release-switcher.sh\n# start watching the current web server response \n$ ./release-watcher.sh\n```\n\n## Configuration: production + opcache disabled\n\n```\n# start the container with production configuration and opcache disabled\n$ ./start.sh production-no-opcache \n# start switching the current release\n$ ./release-switcher.sh\n# start watching the current web server response \n$ ./release-watcher.sh\n```\n\n## Configuration: production + realpath_cache disabled\n\n```\n# start the container with production configuration, opcache enabled and realpath_cache disabled\n$ ./start.sh production-no-realpath-cache\n# start switching the current release\n$ ./release-switcher.sh\n# start watching the current web server response \n$ ./release-watcher.sh\n```\n\n## Author\n\n[Salvatore Cordiano](http://twitter.com/parallelit)\n\n## License\n\nMIT License\n\nCopyright (c) 2017 Salvatore Cordiano\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalvatorecordiano%2Ffacile-it-realpath_cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalvatorecordiano%2Ffacile-it-realpath_cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalvatorecordiano%2Ffacile-it-realpath_cache/lists"}