# Performance

**URL:** https://discourse.cakephp.org/c/performance/8.md

[Latest](https://discourse.cakephp.org/latest.md) · [Categories](https://discourse.cakephp.org/categories.md) · [Tags](https://discourse.cakephp.org/tags.md)

---

## [About the Performance category](https://discourse.cakephp.org/t/about-the-performance-category/23)

<div class="topic-metadata">

**Author:** [@markstory](https://discourse.cakephp.org/u/markstory)\
**Replies:** 0

</div>

---

## [Best Practice for Calculated Fields](https://discourse.cakephp.org/t/best-practice-for-calculated-fields/12653)

<div class="topic-metadata">

**Author:** [@jmcmonagle](https://discourse.cakephp.org/u/jmcmonagle)\
**Replies:** 5\
**Last updated:** [July 23, 2025, 2:17pm UTC](https://discourse.cakephp.org/t/best-practice-for-calculated-fields/12653 "2025-07-23T14:17:19Z")

</div>

I am looking for advice on what the best practice is for implementing my calculated fields in CakePHP 5. I have a model that is Projects hasMany ProjectExpenses which hasMany ProjectExpenseLineItems. Users record expen…

---

## [CakePHP with Openswoole/Swoole or FrankenPHP](https://discourse.cakephp.org/t/cakephp-with-openswoole-swoole-or-frankenphp/12174)

<div class="topic-metadata">

**Author:** [@sirtonhao](https://discourse.cakephp.org/u/sirtonhao)\
**Replies:** 5\
**Last updated:** [August 20, 2024, 7:44pm UTC](https://discourse.cakephp.org/t/cakephp-with-openswoole-swoole-or-frankenphp/12174 "2024-08-20T19:44:34Z")

</div>

I’m trying to connect CakePHP with OpenSwoole or FrankenPHP. I didn’t want to use Apache or even NGINX directly, but I’m having a lot of difficulties. I used the other framework and it works okay, but my heart is with C…

---

## [If you are using Caching with groups, Cache::clearGroup will clear all the cache groups not just the one you are trying to clear](https://discourse.cakephp.org/t/if-you-are-using-caching-with-groups-cache-cleargroup-will-clear-all-the-cache-groups-not-just-the-one-you-are-trying-to-clear/11545)

<div class="topic-metadata">

**Author:** [@vicsekm](https://discourse.cakephp.org/u/vicsekm)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 9:09pm UTC](https://discourse.cakephp.org/t/if-you-are-using-caching-with-groups-cache-cleargroup-will-clear-all-the-cache-groups-not-just-the-one-you-are-trying-to-clear/11545 "2023-10-26T21:09:57Z")

</div>

I’m using database cache since cakephp 2. From time to time I had trouble with caching using groups. My idea is that every table in the database has it’s own cache group, and therefore I can control when do I want to cle…

---

## [Select checkbox not working](https://discourse.cakephp.org/t/select-checkbox-not-working/11281)

<div class="topic-metadata">

**Author:** [@Obodo](https://discourse.cakephp.org/u/Obodo)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 3:30am UTC](https://discourse.cakephp.org/t/select-checkbox-not-working/11281 "2023-06-15T03:30:13Z")

</div>

Hello all, i have worked my head out with different solution but none have given me the desired result and so i have to seek help. I dont know why only the first check box is working. even when i select the last checkbo…

---

## [Bug in FrozenDate setToStringFormat](https://discourse.cakephp.org/t/bug-in-frozendate-settostringformat/10966)

<div class="topic-metadata">

**Author:** [@lvdboom](https://discourse.cakephp.org/u/lvdboom)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 11:19am UTC](https://discourse.cakephp.org/t/bug-in-frozendate-settostringformat/10966 "2023-02-15T11:19:45Z")

</div>

We have found a bug in the Frozendate::setToStringFormat() functionality. Sometimes the year gets incremented. For eaxample, if the provided date is 1958-12-31 and we modify its format with setToStringFormat(‘dd-MM-YYYY’…

---

## [Multiple access from same browser](https://discourse.cakephp.org/t/multiple-access-from-same-browser/9600)

<div class="topic-metadata">

**Author:** [@philhoa](https://discourse.cakephp.org/u/philhoa)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 1:28pm UTC](https://discourse.cakephp.org/t/multiple-access-from-same-browser/9600 "2021-08-06T13:28:19Z")

</div>

Hi guys, Is somebody have the same problem of me? I need to launch multiple quite long ajax request to my CakePHP 3.9. I would like them to execute in parrallel mode but, as it was the same browser (i guess the same se…

---

## [Cakephp 3.9 vs CakePhp 4.2 performance](https://discourse.cakephp.org/t/cakephp-3-9-vs-cakephp-4-2-performance/9502)

<div class="topic-metadata">

**Author:** [@frankhdesign](https://discourse.cakephp.org/u/frankhdesign)\
**Replies:** 5\
**Last updated:** [July 13, 2021, 4:15pm UTC](https://discourse.cakephp.org/t/cakephp-3-9-vs-cakephp-4-2-performance/9502 "2021-07-13T16:15:14Z")

</div>

Has anyone had a chance to do a comparison of the performance between the two? Is there a big performance increase in 4.2?

---

## [Where can I find a CakePHP & LAMP expert to review my app code](https://discourse.cakephp.org/t/where-can-i-find-a-cakephp-lamp-expert-to-review-my-app-code/9511)

<div class="topic-metadata">

**Author:** [@Ailebo](https://discourse.cakephp.org/u/Ailebo)\
**Replies:** 13\
**Last updated:** [July 13, 2021, 7:06am UTC](https://discourse.cakephp.org/t/where-can-i-find-a-cakephp-lamp-expert-to-review-my-app-code/9511 "2021-07-13T07:06:06Z")

</div>

I am an app founder who used a brick and mortar developer - they used CakePHP as the app language. Now I’m stuck trying to find a developer to finish it off after their quote blew out to triple the $$ and taking three ye…

---

## [Upgrading Cakephp 2.3 to 2.10 and PHP 5.6 to 7.2, worth it?](https://discourse.cakephp.org/t/upgrading-cakephp-2-3-to-2-10-and-php-5-6-to-7-2-worth-it/9299)

<div class="topic-metadata">

**Author:** [@Nairbor](https://discourse.cakephp.org/u/Nairbor)\
**Replies:** 0\
**Last updated:** [April 27, 2021, 5:14am UTC](https://discourse.cakephp.org/t/upgrading-cakephp-2-3-to-2-10-and-php-5-6-to-7-2-worth-it/9299 "2021-04-27T05:14:01Z")

</div>

Hi there! Performance and load time wise… Is it worth upgrading Cakephp 2.3 to 2.10 and PHP 5.6 to 7.2? “In theory”, how much performance boost would I be expecting? Why I ask this? I’m working on an app that was w…

---

## [How to check real memory usage](https://discourse.cakephp.org/t/how-to-check-real-memory-usage/9288)

<div class="topic-metadata">

**Author:** [@jarekgol](https://discourse.cakephp.org/u/jarekgol)\
**Replies:** 0\
**Last updated:** [April 23, 2021, 3:16pm UTC](https://discourse.cakephp.org/t/how-to-check-real-memory-usage/9288 "2021-04-23T15:16:51Z")

</div>

I uploaded today some changes to production server and after making some tries using added features I get exceeded memory error when I try to display simple “card” with 1 reference. What is weird much complex production …

---

## [Best practices - retrieve data from public API](https://discourse.cakephp.org/t/best-practices-retrieve-data-from-public-api/9191)

<div class="topic-metadata">

**Author:** [@cecile](https://discourse.cakephp.org/u/cecile)\
**Replies:** 0\
**Last updated:** [March 31, 2021, 9:35am UTC](https://discourse.cakephp.org/t/best-practices-retrieve-data-from-public-api/9191 "2021-03-31T09:35:15Z")

</div>

Hello, In my app, I need to regularly retrieve information from a public API (in cronjob) and the admin should also be able to launch an update using the interface. I thought of creating a model Api and create his own …

---

## [SpeedUp of CakePHP and Page Load](https://discourse.cakephp.org/t/speedup-of-cakephp-and-page-load/8797)

<div class="topic-metadata">

**Author:** [@hala0409](https://discourse.cakephp.org/u/hala0409)\
**Replies:** 4\
**Last updated:** [January 1, 2021, 9:15pm UTC](https://discourse.cakephp.org/t/speedup-of-cakephp-and-page-load/8797 "2021-01-01T21:15:16Z")

</div>

I am using CakePHP version 3.6 and PHP version 7.2. I implemented one page that has more than 110 record on page load time and all data coming from the database with ajax request so this reason my page loading time and s…

---

## [Suggestion required for Server deployment](https://discourse.cakephp.org/t/suggestion-required-for-server-deployment/8671)

<div class="topic-metadata">

**Author:** [@Amir\_clan](https://discourse.cakephp.org/u/Amir_clan)\
**Replies:** 1\
**Last updated:** [December 2, 2020, 9:16pm UTC](https://discourse.cakephp.org/t/suggestion-required-for-server-deployment/8671 "2020-12-02T21:16:50Z")

</div>

I have built an application on android and will be probably on IOS too. I Am using MySQL, I am a new bee and want your help. The app will work offline but as soon as connected to internet synchronization will take place,…

---

## [Error: Eliminate Render Blocking Resources](https://discourse.cakephp.org/t/error-eliminate-render-blocking-resources/8604)

<div class="topic-metadata">

**Author:** [@genasanford](https://discourse.cakephp.org/u/genasanford)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 1:17pm UTC](https://discourse.cakephp.org/t/error-eliminate-render-blocking-resources/8604 "2020-11-12T13:17:15Z")

</div>

I have recently developed a website on Accounting and Bookkeeping Services(https://ebetterbooks.com) and while checking the speed of the website I got a few errors, fixed most of them, except a few that is, Eliminate Ren…

---

## [Is it easy migrade to 3.8 or 4.x CakePHP? Or start from scratch on new install CakePHP 4.x](https://discourse.cakephp.org/t/is-it-easy-migrade-to-3-8-or-4-x-cakephp-or-start-from-scratch-on-new-install-cakephp-4-x/8405)

<div class="topic-metadata">

**Author:** [@lsepolis123](https://discourse.cakephp.org/u/lsepolis123)\
**Replies:** 0\
**Last updated:** [September 21, 2020, 7:26pm UTC](https://discourse.cakephp.org/t/is-it-easy-migrade-to-3-8-or-4-x-cakephp-or-start-from-scratch-on-new-install-cakephp-4-x/8405 "2020-09-21T19:26:04Z")

</div>

I have some old coded Sites from mid-2016, CakePHP 3.1.4 / 3.1.6 / 3.2 well running on PHP 7.0 and MySQL 5.6 // deprecated I tried to run on PHP 7.1 but failed… Can these run on MySQL 5.7…? What is the easier thing I…

---

## [Cakephp 3 slowdown](https://discourse.cakephp.org/t/cakephp-3-slowdown/8248)

<div class="topic-metadata">

**Author:** [@itsaboutcode](https://discourse.cakephp.org/u/itsaboutcode)\
**Replies:** 5\
**Last updated:** [August 26, 2020, 5:52am UTC](https://discourse.cakephp.org/t/cakephp-3-slowdown/8248 "2020-08-26T05:52:41Z")

</div>

Hi, We are facing a strange problem. We have mysql 5.7 and have innodb\_stats\_on\_metadata set as false by default but as a precaution we have also have disabled it with following command. set global innodb\_stats\_on\_meta…

---

## [CakePHP 3.x supports MySQL 5.7 / PHP 7.x...?](https://discourse.cakephp.org/t/cakephp-3-x-supports-mysql-5-7-php-7-x/8242)

<div class="topic-metadata">

**Author:** [@lsepolis123](https://discourse.cakephp.org/u/lsepolis123)\
**Replies:** 0\
**Last updated:** [August 19, 2020, 9:01am UTC](https://discourse.cakephp.org/t/cakephp-3-x-supports-mysql-5-7-php-7-x/8242 "2020-08-19T09:01:31Z")

</div>

My WHM/cPanel Alert me that MySQL 5.6 EOL —\> UPGRADE to MySQL 5.7… I have some CakePHP Sites I think version CakePHP 3.x in LAMP stack. How to find the exact CakePHP version??? CakePHP 3.x supports MySQL 5.7 \[strick …

---

## [Authentication and root folder mismatch after subfolder implementation](https://discourse.cakephp.org/t/authentication-and-root-folder-mismatch-after-subfolder-implementation/7930)

<div class="topic-metadata">

**Author:** [@HypJ3U50N](https://discourse.cakephp.org/u/HypJ3U50N)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 11:16am UTC](https://discourse.cakephp.org/t/authentication-and-root-folder-mismatch-after-subfolder-implementation/7930 "2020-06-12T11:16:51Z")

</div>

I have worked with an working app locally, but after putting it online I see a relation between the authentication plugin and encountered errors. The application is stored in a subfolder of a webpage e.g. www.X.y/cakephp…

---

## [Undefined consonant UPLOAD\_DIRECTORY](https://discourse.cakephp.org/t/undefined-consonant-upload-directory/7880)

<div class="topic-metadata">

**Author:** [@HypJ3U50N](https://discourse.cakephp.org/u/HypJ3U50N)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 3:00pm UTC](https://discourse.cakephp.org/t/undefined-consonant-upload-directory/7880 "2020-05-28T15:00:41Z")

</div>

I try to make a file input working by using the documentation: and it gives the error Use of undefined constant UPLOAD\_DIRECTORY - assumed ‘UPLOAD\_DIRECTORY’ I can understand that if ‘’ is assumed, this may explain…

---

## [Support of VueJS in CakePHP 3](https://discourse.cakephp.org/t/support-of-vuejs-in-cakephp-3/2753)

<div class="topic-metadata">

**Author:** [@Sulian](https://discourse.cakephp.org/u/Sulian)\
**Replies:** 12\
**Last updated:** [May 5, 2020, 12:41pm UTC](https://discourse.cakephp.org/t/support-of-vuejs-in-cakephp-3/2753 "2020-05-05T12:41:37Z")

</div>

Hello, do you think, like Laravel, add the possibility to support creation of VueJS components ? example : https://laravel.com/docs/5.4/frontend#writing-vue-components Best regards

---

## [Too many queries to database](https://discourse.cakephp.org/t/too-many-queries-to-database/7466)

<div class="topic-metadata">

**Author:** [@bapt](https://discourse.cakephp.org/u/bapt)\
**Replies:** 1\
**Last updated:** [March 14, 2020, 3:35pm UTC](https://discourse.cakephp.org/t/too-many-queries-to-database/7466 "2020-03-14T15:35:16Z")

</div>

Hi, I’m new to this forum, and new to cakePHP so… Hello! I just took charge of a CakePHP application, in 2.5.5 version. CakePHP app is deployed in a Linux machine, and it’s connected to a Windows VM with SQL Server Da…

---

## [Cake-dm: a Domain Driven Design approach to CakePHP](https://discourse.cakephp.org/t/cake-dm-a-domain-driven-design-approach-to-cakephp/6975)

<div class="topic-metadata">

**Author:** [@pabloelcolombiano](https://discourse.cakephp.org/u/pabloelcolombiano)\
**Replies:** 3\
**Last updated:** [December 17, 2019, 10:52am UTC](https://discourse.cakephp.org/t/cake-dm-a-domain-driven-design-approach-to-cakephp/6975 "2019-12-17T10:52:54Z")

</div>

Hi every one, I have a few years of experience with CakePHP 3.5+ within very large projects, and I searched for a solution to rescale the rather flat MVC structure of CakePHP. I came up with a domain driven approach. I…

---

## [HtmlHelper vs plain HTML?](https://discourse.cakephp.org/t/htmlhelper-vs-plain-html/5845)

<div class="topic-metadata">

**Author:** [@FinlayDaG33k](https://discourse.cakephp.org/u/FinlayDaG33k)\
**Replies:** 2\
**Last updated:** [March 25, 2019, 6:42am UTC](https://discourse.cakephp.org/t/htmlhelper-vs-plain-html/5845 "2019-03-25T06:42:12Z")

</div>

Hii there, Today I was looking at the HtmlHelper for CakePHP 3.x but I was wondering: Does using the HtmlHelper have any benefits over just using the plain HTML? Eg. I’m mostly using the HTML helper in my head to loa…

---

## [Loading a Component in AppController or PagesController which one is best?](https://discourse.cakephp.org/t/loading-a-component-in-appcontroller-or-pagescontroller-which-one-is-best/4251)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://discourse.cakephp.org/u/karthikeyan)\
**Replies:** 3\
**Last updated:** [October 4, 2018, 4:49pm UTC](https://discourse.cakephp.org/t/loading-a-component-in-appcontroller-or-pagescontroller-which-one-is-best/4251 "2018-10-04T16:49:35Z")

</div>

Dear Friends, We are using Friendsofcake’s Crud component in our project, and we came to know that initialize Crud component in AppController and other controllers both are working fine. AppController.php namespace Ap…

---

## [Multiple installations](https://discourse.cakephp.org/t/multiple-installations/4996)

<div class="topic-metadata">

**Author:** [@mikimanki](https://discourse.cakephp.org/u/mikimanki)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 2:42pm UTC](https://discourse.cakephp.org/t/multiple-installations/4996 "2018-09-25T14:42:54Z")

</div>

Hi, I have a problem. I have an app on my local machine working. But now, I wanted to develop another app. I installed again cakephp in a different folder, set vhosts httpd.config and everything like for the first app. …

---

## [5000 concurrent users](https://discourse.cakephp.org/t/5000-concurrent-users/4928)

<div class="topic-metadata">

**Author:** [@elavarasan](https://discourse.cakephp.org/u/elavarasan)\
**Replies:** 2\
**Last updated:** [September 14, 2018, 9:41pm UTC](https://discourse.cakephp.org/t/5000-concurrent-users/4928 "2018-09-14T21:41:51Z")

</div>

Dear Team, In order to support 5000 concurrent users on CakePHP 3.x. What will be the hardware requirements? Web Server Linux Platform (CentOS v7.x, httpd 2.4, PHP v7.x) How much memory required : ?? How many CPU re…

---

## [Save 3 million rows best practice](https://discourse.cakephp.org/t/save-3-million-rows-best-practice/4846)

<div class="topic-metadata">

**Author:** [@mesiarm](https://discourse.cakephp.org/u/mesiarm)\
**Replies:** 5\
**Last updated:** [September 6, 2018, 1:19pm UTC](https://discourse.cakephp.org/t/save-3-million-rows-best-practice/4846 "2018-09-06T13:19:40Z")

</div>

I want to save 3 million rows with saveMany into mysql database. This function is rare used to import convert and save data from csv. I want to ask about tips to do it efficiently. Should I call saveMany for bulks of (fo…

---

## [Cake 3 performance benchmarks PHP5.6 v 7.x](https://discourse.cakephp.org/t/cake-3-performance-benchmarks-php5-6-v-7-x/2313)

<div class="topic-metadata">

**Author:** [@jhob](https://discourse.cakephp.org/u/jhob)\
**Replies:** 6\
**Last updated:** [August 6, 2018, 8:06am UTC](https://discourse.cakephp.org/t/cake-3-performance-benchmarks-php5-6-v-7-x/2313 "2018-08-06T08:06:23Z")

</div>

Has anyone done some performance benchmarks comparing cake3 performance on PHP5.6 compared to 7.x? If so could you share those results? Thanks!

---

## [Opinions please](https://discourse.cakephp.org/t/opinions-please/4438)

<div class="topic-metadata">

**Author:** [@j-bone](https://discourse.cakephp.org/u/j-bone)\
**Replies:** 2\
**Last updated:** [June 21, 2018, 1:31pm UTC](https://discourse.cakephp.org/t/opinions-please/4438 "2018-06-21T13:31:14Z")

</div>

What is your opinion on having a separate dashboard controller vs. a dashboard action in any given controller?

[Next page](https://discourse.cakephp.org/c/performance/8.md?page=1)
